I'm working towards a tuples function, which takes collections and a parameter n. The parameter designates the number of indices the generated vector should have. The function then permutes all possible n-tuples of the elements in the collection.
So far I've been trying to combine functions from tuples.core and math.combinatoris, namely, tuples and permutations.
(defn Tuples [& args]
(combo/permutations (tuple args)))
Example)
input: (0,1) n=3
output: [[0,0,0] [0,0,1] [0,1,0] [1,0,0] [0,1,1] [1,1,0] [1,0,1] [1,1,1]]