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

apply

choice.apply

(R 
type
, F 
type
: Typed_Function R, f F)
 => 
R
apply -- apply `f.call` to the value stored in this choice

This can be used to perform operation on values of arbitray choice types.

Example:


which prints

Type Parameters

0.099dev (GIT hash a68bce9af280552faedee34cd5433dc10b6454de)
last changed: 2026-10-14