Skip to main content
Module

x/fun/pair.ts>dup

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

Creates a pair from a single type

Examples

Example 1

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

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