Method Return
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
Return<T>(T)
The return method for the Maybe<T> monad, which encapsulates
a value of type T in an Maybe<T>
monad.
public static Maybe<T> Return<T>(T value)
Parameters
valueTThe value to encapsulate.
Returns
Type Parameters
TThe type of the value.