Maybe
NONE
NONE == 0SOME
SOME 5 == (0 5)
SOME b#hello == (0 b#hello)
SOME [] == (0 [])maybeCase
maybeCase NONE 0 inc == 0
maybeCase (SOME 5) 0 inc == 6
maybeCase (SOME b#a) b#none id == b#amaybe
maybe 0 inc NONE == 0
maybe 0 inc (SOME 5) == 6
maybe b#none id (SOME b#a) == b#afromSome
unpackSome
isSome
isNone
fmapMaybe
maybeGuard
maybeGuardNot
Last updated