ReadonlyaltPicks the first successful computation.
ReadonlyapplyApplies the function to the value over S.
ReadonlyemptyCreates an empty erroneous computation that exits early.
ReadonlyflatReadonlymapMaps the function fn onto F structure.
Readonlypure
A monad with monoid-ish combine operation. An instance
mofMonadPlusmust satisfy the following laws:f;m.flatMap(f)(m.empty())equals tom.empty(),v;m.flatMap(() => m.empty())(v)equals tom.empty().