Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

getSecond

import { getSecond } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/pair.ts";

Extracts the second value from a Pair.

@example
import * as P from "./pair.ts";
import { pipe } from "./fn.ts";

const shouldBe2 = pipe(
  P.pair(1, 2),
  P.getSecond
); // 2
function getSecond<A, B>([_second]: Pair<A, B>): B;
§
getSecond<A, B>([_second]: Pair<A, B>): B
[src]

§Type Parameters

§Parameters

§
[_second]: Pair<A, B>
[src]

§Return Type