- alwaysFalse
bool alwaysFalse(bool )
Undocumented in source. Be warned that the author may not have intended to support it.
- alwaysFalseInt
bool alwaysFalseInt(int )
Undocumented in source. Be warned that the author may not have intended to support it.
- alwaysTrue
bool alwaysTrue(bool )
Undocumented in source. Be warned that the author may not have intended to support it.
- alwaysTrueInt
bool alwaysTrueInt(int )
Undocumented in source. Be warned that the author may not have intended to support it.
- bind
Either!(Any, T) bind(T value)
Either!(Left, Right) bind(T value)
auto bind(T value)
void bind()
Either!(PickDefinedType!(L, Left), PickDefinedType!(R, Right)) bind(This value)
Wraps a value as an Either monad
- bindLeft
auto bindLeft(T value)
- callIfCan
auto callIfCan(This either, MapFunction mapFunction)
- callWith
auto callWith(This either, MapFunction mapFunction)
- canCheck
bool canCheck()
- checkEither
auto checkEither(This either)
- isCallableWith
bool isCallableWith()
- isLeft
bool isLeft(T either)
returns true when the Left type is stored
- isRight
bool isRight(T either)
returns true when the Right type is stored
- returnsAnyOf
bool returnsAnyOf()
Check if the matcher returns any of the provided return types
- when
auto when(This either, T newValue)
Match Left or Right values by value examples
- when
This when(This either, Matcher matcher)
Match Left or Right values using types
- when
Either!(NewLeft!(This, T), NewRight!(This, T)) when(This either, T result)
Match Left or Right values using a check function