Method Apply
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
Apply<T, TResult>(Cell<T>, Cell<Func<T, TResult>>)
Apply a value in a cell to a function in a cell. This is the primitive for all function lifting.
public static Cell<TResult> Apply<T, TResult>(this Cell<T> c, Cell<Func<T, TResult>> cf)
Parameters
cCell<T>The cell.
cfCell<Func<T, TResult>>The cell containing the function to apply the value to.
Returns
- Cell<TResult>
A cell whose value is the result of applying the current function in cell
cfto this cell's current value.
Type Parameters
TThe type of the cell.
TResultThe type of the result.