import { type set } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { set } = set;
Specifies ReadonlySet as a Higher Kinded Type, with covariant parameter A corresponding to the 0th index of any substitutions.
import { type set } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { set } = set;
Extract the inner type of a ReadonlySet
definition: T extends ReadonlySet<infer A> ? A : never
import { set } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { set } = set;
The canonical implementation of Functor for ReadonlySet. It contains the method map.
type
Functor<KindReadonlySet>
type
Apply<KindReadonlySet>
type
Applicative<KindReadonlySet>
type
Chain<KindReadonlySet>
type
Monad<KindReadonlySet>
type
Filterable<KindReadonlySet>
type
Foldable<KindReadonlySet>
type
Traversable<KindReadonlySet>
import { set } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { set } = set;
Given a Refinement or Predicate over A and a ReadonlySet return a new ReadonlySet with only values for which the predicate or refinement return true.
Type Parameters
B extends A
Given a Predicate or Refinement over A and a ReadonlySet return a Pair with a first value being a ReadonlySet of values that return true when applied to the refinement or predicate and a second value being a ReadonlySet of values that return false when applied to the predicate.
Type Parameters
B extends A
Parameters
predicate: Predicate<A>