Skip to main content
Module

x/fun/mod.ts>pair.dup

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function pair.dup
import { pair } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { dup } = pair;

Creates a pair from a single type

Examples

Example 1

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

const result = dup(1); // [1, 1]