A set of tools for capturing and maintaining multiple application flows.
Switchworks like the ordinaryswitch: you provide the cases and the default value, it jumps in to the proper case or falls through to the default result. The cases may be matched against a value or with a function.LazySwitchis like the previousSwitchbut it accepts the value to be matched against provided prefixes in amatchmethod. The cases may be matched against a value or with a function.Eitheris a monad with aLeftand aRightstate that can be used for capturing uncommon behaviour or maintaining two flows of application execution at once.
yarn add or-elseor
npm i -S or-elseTBD