import { set } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { partitionMap } = set;
Given a function A -> Either<J, I> and a ReadonlySet return a Pair(ReadonlySet, ReadonlySet) by applying every value A in the set to the partitioning function.