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

unwrap

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

Just like the first function, unwrap returns the first value in a pair.

@example
import { pair, unwrap } from "./pair.ts";

const result = unwrap(pair(1, 2)); // 1
function unwrap<A, B>([first]: Pair<A, B>): A;
§
unwrap<A, B>([first]: Pair<A, B>): A
[src]

§Type Parameters

§Parameters

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

§Return Type