Table of Contents

Method SampleLazy

Namespace
SodaFlow
Assembly
SodaFlow.dll

SampleLazy<T>(Cell<T>)

Sample the current value of the cell lazily.

public static Lazy<T> SampleLazy<T>(this Cell<T> c)

Parameters

c Cell<T>

The cell.

Returns

Lazy<T>

A lazy value that gives the current value of the cell.

Type Parameters

T

The type of the cell.

Remarks

This is a variant of Sample<T>(Cell<T>) that works with the CellLoop<T> class when no code closed the cell loop. Use it in code that is general sufficient for a CellLoop<T> argument. See HoldLazy<T>(Stream<T>, Lazy<T>).