Method MapSixth
- Namespace
- SodaFlow.Functional
- Assembly
- SodaFlow.Functional.dll
MapSixth<T>(Func<T6, T>)
Transforms the value if this holds the sixth case, and passes each other case through unchanged.
public Either<T1, T2, T3, T4, T5, T, T7> MapSixth<T>(Func<T6, T> f)
Parameters
fFunc<T6, T>The function to transform the sixth case with.
Returns
- Either<T1, T2, T3, T4, T5, T, T7>
An either whose sixth case has type
T. It holds the result offif this held the sixth case, and otherwise the same case and value as this.
Type Parameters
TThe type that the sixth case becomes.
Remarks
This calls f only when this holds the sixth case.