Clojure and me has moved.

Sunday, October 19, 2008

Clojure Golf: combinations (2)

This post has moved, go to its new location
(defn combinations [& cs]
(reduce #(for [v %1 i %2] (conj v i)) [[]] cs))

No comments: