Table of Contents

Method Second

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

Second<T>(T)

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

public static Either.EitherSecond<T> Second<T>(T value)

Parameters

value T

The value.

Returns

Either.EitherSecond<T>

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