Table of Contents

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

c Cell<T>

The cell.

f Func<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 f for each value fired by this cell.

Type Parameters

T

The type of the cell.

TResult

The type of values fired by the returned cell.