Skip to main content
Module

x/fun/set.ts>of

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 of
import { of } from "https://deno.land/x/fun@v.2.0.0-alpha.11/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.of(1); // Set(1);

Returns

ReadonlySet<A>