Table of Contents

Method MapFourth

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MapFourth<T>(Func<T4, T>)

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

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

Parameters

f Func<T4, T>

The function to transform the fourth case with.

Returns

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

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

Type Parameters

T

The type that the fourth case becomes.

Remarks

This calls f only when this holds the fourth case.