Table of Contents

Method Some

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

Some(T)

Creates a Maybe<T> containing the given value.

[Pure]
public static Maybe<T> Some(T value)

Parameters

value T

The value to contain.

Returns

Maybe<T>

A Maybe<T> containing value.

Remarks

Some<T>(T) is usually more convenient, since it infers the type argument from the value.