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

pair

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

Creates a Pair from two values first and second with types A and B respectively. Used to quickly construct a Pair.

@example
import * as P from "./pair.ts";

const nameAndAge = P.pair("Brandon", 37);

const name = P.getFirst(nameAndAge); // "Brandon"
const age = P.getSecond(nameAndAge); // 37
function pair<A, B>(first: A, second: B): Pair<A, B>;
§
pair<A, B>(first: A, second: B): Pair<A, B>
[src]

§Type Parameters

§Parameters

§
first: A
[src]
§
second: B
[src]

§Return Type