Table of contents
MatchUtil
Propreties:
arm→fun(condition: any, result: any):MatchUtilChecks if the
scrutineeis equal to the condition (==)
see definitions: MatchUtil
arm_less_eq→fun(condition: any, result: any):MatchUtilChecks if the
scrutineeis less than or equal to the condition (<=)
see definitions: MatchUtil
arm_less_than→fun(condition: any, result: any):MatchUtilChecks if the
scrutineeis less than to the condition (<)
see definitions: MatchUtil
arm_more_eq→fun(condition: any, result: any):MatchUtilChecks if the
scrutineeis more than or equal to the condition (>=)
see definitions: MatchUtil
arm_more_than→fun(condition: any, result: any):MatchUtilChecks if the
scrutineeis more than to the condition (>)
see definitions: MatchUtil
collapse→fun():anyCollapses the entire match arm, returning either a result, the fallback if no match was found or nothing
default→fun(result: any):MatchUtilIf none of the arms have a match, it will fallback to this result
see definitions: MatchUtil
Methods:
SwitchUtil
Propreties:
case→fun(condition: any, result: fun():any):SwitchUtilChecks if the
scrutineeis equal to the condition (==)
see definitions: SwitchUtil
case_less_eq→fun(condition: any, result: fun():any):SwitchUtilChecks if the
scrutineeis less than or equal to the condition (<=)
see definitions: SwitchUtil
case_less_than→fun(condition: any, result: fun():any):SwitchUtilChecks if the
scrutineeis less than to the condition (<)
see definitions: SwitchUtil
case_more_eq→fun(condition: any, result: fun():any):SwitchUtilChecks if the
scrutineeis more than or equal to the condition (>=)
see definitions: SwitchUtil
case_more_than→fun(condition: any, result: fun():any):SwitchUtilChecks if the
scrutineeis more than to the condition (>)
see definitions: SwitchUtil
collapse→fun()Evaluates the found case, if no case was found then evaluate the fallback if it is provided
default→fun(result: fun():any):MatchUtilIf none of the arms have a match, it will fallback to this result
see definitions: MatchUtil