0.1.0 • Published 5 years ago
or-else v0.1.0
||else
A set of tools for capturing and maintaining multiple application flows.
Contents
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.
Installation
yarn add or-elseor
npm i -S or-elseExamples
TBD
0.1.0
5 years ago