apply
import { apply } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/set.ts";Given a ReadonlySet of functions A -> I and a ReadonlySet return a ReadonlySet by applying every function to every value A.
@example
import * as S from "./set.ts";
import { pipe } from "./fn.ts";
type Person = { name: string, age: number };
const person = (name: string) => (age: number): Person => ({ name, age });
const result = pipe(
S.wrap(person),
S.apply(S.wrap("Brandon")),
S.apply(S.wrap(37)),
); // ReadonlySet<Person>
function apply<A>(ua: ReadonlySet<A>): <I>(ufai: ReadonlySet<(a: A) => I>) => ReadonlySet<I>;