Skip to content

Improve Maybe API

Compare
Choose a tag to compare
@alex-lairan alex-lairan released this 21 Apr 04:52
· 137 commits to master since this release

Maybe monad should be close to Haskell or Scala's API
=> #2

Add methods:
to_s, inspect: for easy-to-read
nothing?, just?: instead of failure? and success?
and remove following methods:

failure, success?: due to the above reasons.
#== is implemented for each Just and Nothing and remove Maybe's
=> #3

Remove remained old 'equal?' methods in Nothing
=> #4