Clojure and me has moved.

Saturday, October 18, 2008

Clojure Golf: combinations

This post has moved, go to its new location
(defn combinations [& cs]
(reduce (fn [vs c]
(mapcat #(map conj vs (repeat %)) c))
[[]] cs))

1 comment:

RH Trial said...

Nice. Glad to see you back!