Table of Contents

Method MapSixth

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MapSixth<T>(Func<T6, T>)

Transforms the value if this holds the sixth case, and passes each other case through unchanged.

public Either<T1, T2, T3, T4, T5, T, T7, T8> MapSixth<T>(Func<T6, T> f)

Parameters

f Func<T6, T>

The function to transform the sixth case with.

Returns

Either<T1, T2, T3, T4, T5, T, T7, T8>

An either whose sixth case has type T. It holds the result of f if this held the sixth case, and otherwise the same case and value as this.

Type Parameters

T

The type that the sixth case becomes.

Remarks

This calls f only when this holds the sixth case.