Table of Contents

Method First

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

First<T>(T)

Marks a value as belonging in the first position of an either.

public static Either.EitherFirst<T> First<T>(T value)

Parameters

value T

The value.

Returns

Either.EitherFirst<T>

A marked value which changes implicitly into any either whose first type argument is T.

Type Parameters

T

The type of the value.

Remarks

This is what lets code give an either as a result or a value, with no name for all of its type arguments. The marked value carries only the position and the value, and the conversion at the assignment or the return gives the others. Where no such conversion is available, use the First of the either.