Skip to content

mapSecond

mapSecond<B, D>(f): <A>(data) => These<A, D>

Defined in: Core/These.ts:122

Transforms the second value, leaving the first unchanged.

B

D

(b) => D

<A>(data): These<A, D>

A

These<A, B>

These<A, D>

pipe(These.second("warn"), These.mapSecond(e => e.toUpperCase()));     // Second("WARN")
pipe(These.both(5, "warn"), These.mapSecond(e => e.toUpperCase()));    // Both(5, "WARN")