Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/set.ts>wrap

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

Given a value A create a new ReadonlySet that contains that value.

Examples

Example 1

import * as S from "./set.ts";

const result = S.wrap(1); // Set(1);

Returns

ReadonlySet<A>