Table of Contents

Method Some

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

Some<T>(T)

Creates a Maybe<T> containing the given value.

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

Parameters

value T

The value to contain.

Returns

Maybe<T>

A Maybe<T> containing value.

Type Parameters

T

The type of the value, inferred from value.

Remarks

This holds a null value as it holds each other value. It gives a Maybe<T> which has a value, and that value is null.