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

combine

choice.combine

(R 
type
, F 
type
: Typed_Combiner R, 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
0.099dev (GIT hash a68bce9af280552faedee34cd5433dc10b6454de)
last changed: 2026-10-14