Method Map
- Namespace
- SodaFlow
- Assembly
- SodaFlow.dll
Map<T, TResult>(Cell<T>, Func<T, TResult>)
Transforms the values of a cell with the given function. The cell from this call has the value of that function on the value of the input cell.
public static Cell<TResult> Map<T, TResult>(this Cell<T> c, Func<T, TResult> f)
Parameters
cCell<T>The cell.
fFunc<T, TResult>Function to apply to change the values. It must be a pure function.
Returns
- Cell<TResult>
A cell which fires values transformed by
ffor each value fired by this cell.
Type Parameters
TThe type of the cell.
TResultThe type of values fired by the returned cell.