Control Flow Abstraction Funcers

fatal

Aborts with an error message

TypeValue
InputAnyany value
OutputVoiddoes not return

Examples

ProgramTypeValueError
1 if ==1 then fatal else true okBool{"Code":"UnexpectedValue","GotValue":"1","Kind":"Value","Pos":"1:15"}

must

Aborts with an error message if input is null

TypeValue
InputNull|<A Any>a value that you want to be sure is not null
Output<A Any>the input value, unless it is null

Examples

ProgramTypeValueError
null mustNull{"Code":"UnexpectedValue","GotValue":"null","Kind":"Value","Pos":"1:6"}