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
fFunc<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 offif this held the fifth case, and otherwise the same case and value as this.
Type Parameters
TThe type that the fifth case becomes.
Remarks
This calls f only when this holds the fifth case.