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

apply

choice.apply

R 
type
,
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

Arguments

0.099dev (GIT hash bf4ead724d7f3fdab43a87b63c17477c916c8995)
last changed: 2026-11-04