Table of Contents

Method Fourth

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

Fourth<T>(T)

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

public static Either.EitherFourth<T> Fourth<T>(T value)

Parameters

value T

The value.

Returns

Either.EitherFourth<T>

A marked value which changes implicitly into any either whose fourth 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 Fourth of the either.