mapSecond
import { mapSecond } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/these.ts";Apply a function to the Left value of a These.
@example
import { mapSecond, left, both } from "./these.ts";
import { pipe } from "./fn.ts";
const result1 = pipe(left("Error"), mapSecond(e => `Error: ${e}`));
console.log(result1); // { tag: "Left", left: "Error: Error" }
const result2 = pipe(both("Warning", 5), mapSecond(w => `Warning: ${w}`));
console.log(result2); // { tag: "Both", left: "Warning: Warning", right: 5 }