Skip to main content
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.
Go to Latest
function wrap
import { wrap } from "https://deno.land/x/fun@v2.0.0-alpha.12/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>