Table of Contents

Method Calm

Namespace
SodaFlow
Assembly
SodaFlow.dll

Calm<T>(Cell<T>)

Return a cell whose stream only receives events which have a different value than the previous event.

public static Cell<T> Calm<T>(this Cell<T> c)

Parameters

c Cell<T>

The cell.

Returns

Cell<T>

A cell whose stream only receives events which have a different value than the previous event.

Type Parameters

T

The type of the cell.

Calm<T>(Cell<T>, IEqualityComparer<T>)

Return a cell whose stream only receives events which have a different value than the previous event.

public static Cell<T> Calm<T>(this Cell<T> c, IEqualityComparer<T> comparer)

Parameters

c Cell<T>

The cell.

comparer IEqualityComparer<T>

The equality comparer that gives true when two items are equal.

Returns

Cell<T>

A cell whose stream only receives events which have a different value than the previous event.

Type Parameters

T

The type of the cell.

Calm<T>(Cell<T>, Func<T, T, bool>)

Return a cell whose stream only receives events which have a different value than the previous event.

public static Cell<T> Calm<T>(this Cell<T> c, Func<T, T, bool> areEqual)

Parameters

c Cell<T>

The cell.

areEqual Func<T, T, bool>

The function that gives true when two items are equal.

Returns

Cell<T>

A cell whose stream only receives events which have a different value than the previous event.

Type Parameters

T

The type of the cell.