Table of Contents

Class Either

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

Constructors for the Either<T1, T2> family with no type argument in the code.

[PublicAPI]
public static class Either
Inheritance
Either
Inherited Members

Remarks

The name of an either holds all of its cases, thus a construction of one directly repeats types that the code around it gives. The constructors here give a small value with a mark for its position. That value changes implicitly into the either that the code needs.

Methods

Eighth<T>(T)

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

Fifth<T>(T)

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

First<T>(T)

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

Fourth<T>(T)

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

GetValueAs<T>()

Begins a call which collapses an either whose cases all derive from T down to a single T.

Second<T>(T)

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

Seventh<T>(T)

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

Sixth<T>(T)

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

Third<T>(T)

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