Table of Contents

Method MapThird

Namespace
SodaFlow.Functional
Assembly
SodaFlow.Functional.dll

MapThird<T>(Func<T3, T>)

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

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

Parameters

f Func<T3, T>

The function to transform the third case with.

Returns

Either<T1, T2, T, T4>

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

Type Parameters

T

The type that the third case becomes.

Remarks

This calls f only when this holds the third case.