Skip to content
This repository has been archived by the owner on Jun 19, 2022. It is now read-only.

Releases: monsieurluge/optional

Optional

10 Mar 13:38
Compare
Choose a tag to compare

Provide the following optional objects and behaviour:

"Maybe" objects, as "Just" and "Nothing", all providing these methods:

  • getOr, to retrieve the optional value or a default one
  • map, to transform the optional value, if any
  • bind, to act on the optional value, if any, and return another optional value

"Either" object, used as a "Maybe" factory.