Skip to main content
Module

x/fun/mod.ts>set.wrap

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

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>