import { set } from "https://deno.land/x/fun@v2.0.0-alpha.6/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>