Method Apply
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
Apply<T, TResult>(Behavior<T>, Behavior<Func<T, TResult>>)
Apply a value in a behavior to a function in a behavior. This is the primitive for all function lifting.
public static Behavior<TResult> Apply<T, TResult>(this Behavior<T> b, Behavior<Func<T, TResult>> bf)
Parameters
bBehavior<T>The behavior.
bfBehavior<Func<T, TResult>>The behavior containing the function to apply the value to.
Returns
- Behavior<TResult>
A behavior whose value is the result of applying the current function in behavior
bfto this behavior's current value.
Type Parameters
TThe type of the behavior.
TResultThe type of the result.