function | since v0.0-927 | clojure.set/select | Edit |
(select pred xset)
Returns a set of the elements for which pred
is true.
Returns a set of the elements for which pred is true
(defn select
[pred xset]
(reduce (fn [s k] (if (pred k) s (disj s k)))
xset xset))