Table of Contents

Method MapFifth

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MapFifth<T>(Func<T5, T>)

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

public Either<T1, T2, T3, T4, T> MapFifth<T>(Func<T5, T> f)

Parameters

f Func<T5, T>

The function to transform the fifth case with.

Returns

Either<T1, T2, T3, T4, T>

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

Type Parameters

T

The type that the fifth case becomes.

Remarks

This calls f only when this holds the fifth case.