fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

combine

choice.combine

R 
type
,
other choice.this,
e R,
f F
)
 => 
R
combine -- if `choice.this` and `other` have the same ordinal number, combine
the value stored in this `ta` and in other `ov` using `f.call va vb`.
Otherwise, return `e`.

This can be used to combine values of arbitrary choice types.

Type Parameters

function type

Arguments

the choice we combine `choice.this` with
default result in case of different ordinal numbers
combiner function
0.099dev (GIT hash a35e75388cc5c7a861f5c2a3f42d121e3aab582a)
last changed: 2026-11-03