Closed pelotom closed 8 years ago
Add instance methods for case and caseOn so you can do e.g.
case
caseOn
const { Just, Nothing } = Type({ Just: [T], Nothing: [] }) const m = Just(3) m.case({ Nothing: () => 0, Just: (n) => n + 2 })
Thank you. It seems sensible.
Add instance methods for
case
andcaseOn
so you can do e.g.