Table of Contents

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

c Cell<T>

The cell.

cf Cell<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 cf to this cell's current value.

Type Parameters

T

The type of the cell.

TResult

The type of the result.