type Option<a> = either { .none!, .some a, }
An optional value, either .some a or .none!.
Option<a> is either .some a or .none!.
.some a carries a value..none! means no value is available.type Option<a> = either { .none!, .some a, }
An optional value, either .some a or .none!.
Keeps the contained value only if it satisfies the predicate.
Transforms the contained value with a computation that may return no value.
Transforms the contained value, if present.
Converts .some value to a singleton list and .none! to an empty list.
Converts .some value to .ok value and .none! to the provided error.