This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
Releases: monsieurluge/optional
Releases · monsieurluge/optional
Optional
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.