Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

wrap

import { wrap } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/set.ts";

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

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

const result = S.wrap(1); // Set(1);
function wrap<A>(a: A): ReadonlySet<A>;
§
wrap<A>(a: A): ReadonlySet<A>
[src]

§Type Parameters

§Parameters

§Return Type

§
ReadonlySet<A>
[src]