Clojure Golf: combinations (2)
(defn combinations [& cs]
(reduce #(for [v %1 i %2] (conj v i)) [[]] cs))
(defn combinations [& cs]
(reduce #(for [v %1 i %2] (conj v i)) [[]] cs))
No comments yet.
RSS feed for comments on this post. TrackBack URI