Cartesian product of two or more lists: Difference between revisions

Content added Content deleted
Line 541: Line 541:


(defn cart [colls]
(defn cart [colls]
"Compute the cartesian product of sets represented as lists of lists"
"Compute the cartesian product of list of lists"
(if (empty? colls)
(if (empty? colls)
'(())
'(())