import { pair } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { getSecond } = pair;
Extracts the second value from a Pair.
Examples
Example 1
Example 1
import * as P from "./pair.ts";
import { pipe } from "./fn.ts";
const shouldBe2 = pipe(
P.pair(1, 2),
P.getSecond
); // 2