Class Maybe
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
Constructors for Maybe<T> with no type argument in the code.
[PublicAPI]
public static class Maybe
- Inheritance
-
Maybe
- Inherited Members
Fields
Methods
- FromTryGet<TResult>(TryGet<TResult>)
Runs a method of the
bool Try...(out TResult)shape and returns what it produced.
- FromTryGet<T, TResult>(T, TryGet<T, TResult>)
Runs a method of the
bool Try...(T, out TResult)shape against the given input and returns what it produced.
- FromTryGet<T1, T2, TResult>(T1, T2, TryGet<T1, T2, TResult>)
Runs a method of the
bool Try...(T1, T2, out TResult)shape against the given inputs and returns what it produced.
- FromTryGet<T1, T2, T3, TResult>(T1, T2, T3, TryGet<T1, T2, T3, TResult>)
Runs a method of the
bool Try...(T1, T2, T3, out TResult)shape against the given inputs and returns what it produced.
- SomeIf<T>(bool, Func<T>)
Creates a Maybe<T> containing the result of the given function if a condition holds, and one containing nothing if it does not.
- SomeIf<T>(bool, T)
Creates a Maybe<T> containing the given value if a condition holds, and one containing nothing if it does not.
- SomeNotNull<T>(T?)
Creates a Maybe<T> containing the value of the given Nullable<T>, if it has one.
- SomeNotNull<T>(T?)
Creates a Maybe<T> containing the given reference, unless it is null.
- Some<T>(T)
Creates a Maybe<T> containing the given value.