import { set } from "https://deno.land/x/fun@v.2.0.0-alpha.11/mod.ts";
const { intersection } = set;
Given an instance of Eq return a function that takes two ReadonlySets and returns a new set with only the elements that exist in both sets.
Parameters
S: Eq<A>