Table of Contents

Method Ignore

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

Ignore<T>(T)

Discards a value and gives Unit as the replacement.

public static Unit Ignore<T>(this T o)

Parameters

o T

The value to discard.

Returns

Unit

Value.

Type Parameters

T

The type of the value to discard.

Remarks

For deliberately throwing away a result, where saying so is clearer than letting the expression operate on its own.