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