import { combinations } from "https://deno.land/x/simplestatistics@v7.8.0/index.js";
Implementation of Combinations Combinations are unique subsets of a collection - in this case, k x from a collection at a time. https://en.wikipedia.org/wiki/Combination
Examples
combinations([1, 2, 3], 2); // => [[1,2], [1,3], [2,3]]
combinations([1, 2, 3], 2); // => [[1,2], [1,3], [2,3]]