Table of Contents

Method WithCaptures

Namespace
SodaFlow
Assembly
SodaFlow.dll

WithCaptures<TCaptures>(Func<LoopedCell<T>, (Cell<T> Cell, TCaptures Captures)>)

Loop a cell and return a value tuple containing the resulting cell and captures.

[Pure]
public (Cell<T> Cell, TCaptures Captures) WithCaptures<TCaptures>(Func<LoopedCell<T>, (Cell<T> Cell, TCaptures Captures)> f)

Parameters

f Func<LoopedCell<T>, (Cell<T> Cell, TCaptures Captures)>

A function which takes the cell loop and returns a value tuple containing the resulting cell and captures.

Returns

(Cell<T> Cell, TCaptures Captures)

A value tuple containing the resulting cell and captures.

Type Parameters

TCaptures

The type of the captures to return.