Maybe
NONE
Represents the absence of a value in the Maybe type.
SOME
Wraps a value in the Maybe type.
maybeCase
Pattern matches on a Maybe value, providing cases for NONE and SOME.
maybe
Alias for maybeCase
. Pattern matches on a Maybe value.
fromSome
Extracts the value from a SOME, or returns a default for NONE.
unpackSome
Extracts the value from a SOME, or crashes for NONE.
isSome
Checks if a Maybe value is SOME.
isNone
Checks if a Maybe value is NONE.
fmapMaybe
Applies a function to the value inside a SOME, or returns NONE.
maybeGuard
Returns NONE if the condition is false, otherwise returns the Maybe value.
maybeGuardNot
Returns NONE if the condition is true, otherwise returns the Maybe value.
Last updated