copy
import { copy } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/set.ts";Copies an existing ReadonlySet into a new ReadonlySet, keeping references to the original members.
@example
import * as S from "./set.ts";
const original = S.set(1, 2, 3);
const copy = S.copy(original);
const result1 = original === copy; // false
const has = (value: number) => original.has(value) === copy.has(value);
const result2 = has(1); // true;
const result3 = has(10); // true;
function copy<A>(ua: ReadonlySet<A>): ReadonlySet<A>;