Method Bind
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
Bind<T, TResult>(Maybe<T>, Func<T, Maybe<TResult>>)
public static Maybe<TResult> Bind<T, TResult>(this Maybe<T> value, Func<T, Maybe<TResult>> transformation)
Parameters
valueMaybe<T>The Maybe<T> value to transform.
transformationFunc<T, Maybe<TResult>>The transformation function, which takes a value of type
Tcontained in the monad and transforms it into a new monad of type Maybe<T>.
Returns
Type Parameters
TThe type of the value contained in the monad to transform.
TResultThe type of the value contained in the resulting monad.