Clojure and me has moved.

Monday, October 20, 2008

Clojure Golf: subsets

This post has moved, go to its new location
(defn subsets [s]
(reduce (fn [ss x] (concat ss (map #(conj % x) ss))) [#{}] s))

No comments: