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

switch

switch

(A 
type
, B 
type
)
:
choice A, B,monad A, switch.this,Sequence A,equatable
[Contains abstract features]
[Module base]
switch is the parent feature of all choices
that encode success and failure,
e.g. option (something/nil)
or outcome (something/error)

Type Parameters

A
:
Any
[Module base]
B
:
Any
[Module base]

Functions

group the elements of this sequence by a key of type K

f determines the key of an element
0.095dev (2025-10-09 18:01:25 GIT hash 4826e516431c193e428991dd546a46472973d8d4 built by fridi@fzen)