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

dup

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

Creates a pair from a single type

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

const result = dup(1); // [1, 1]
function dup<A>(a: A): Pair<A, A>;
§
dup<A>(a: A): Pair<A, A>
[src]

§Type Parameters

§Parameters

§Return Type