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, T5, T6, T7, T8> MapThird<T>(Func<T3, T> f)
Parameters
fFunc<T3, T>The function to transform the third case with.
Returns
- Either<T1, T2, T, T4, T5, T6, T7, T8>
An either whose third case has type
T. It holds the result offif this held the third case, and otherwise the same case and value as this.
Type Parameters
TThe type that the third case becomes.
Remarks
This calls f only when this holds the third case.