short library
Mallard under shorter names: Res, ok, err and friends.
Built from extension types at no runtime cost. Copy it as a template to name the API your own way.
Classes
-
Absent<
T> - A Maybe without a value.
-
Failure<
S, F> - A Result holding the reason an operation failed.
- Mallard
- Global callbacks that observe every Task and ResultStream outcome, for logging, analytics or crash reporting.
-
Maybe<
T> - A value that is Present or Absent.
- Nothing
-
The success value of an operation that only has an effect, as in
Task<Nothing, F>. -
Present<
T> - A Maybe holding a value, which may itself be null.
-
Success<
S, F> - A Result holding the value an operation produced.