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

combine

choice.combine

combine(R:Any,F:Typed_Combiner R,other choice.this,e R,f F) => R[src]
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

R:Any[src]
F:Typed_Combiner R[src]
function type

Arguments

other choice.this[src]
the choice we combine `choice.this` with
e R[src]
default result in case of different ordinal numbers
f F[src]
combiner function
0.099dev (GIT hash e2d5298d8107bb5fe79600fdb06a49bc75756344)
last changed: 2026-11-23