Table of Contents

Method Return

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

Return<T>(T)

The return method for the Maybe<T> monad, which encapsulates a value of type T in an Maybe<T> monad.

public static Maybe<T> Return<T>(T value)

Parameters

value T

The value to encapsulate.

Returns

Maybe<T>

The Maybe<T> which encapsulates value.

Type Parameters

T

The type of the value.