user=> (select odd? #{1 2 3} ) #{1 3}
Returns a lazy sequence of the items in coll for which (pred item)
(defn select "Returns a set of the elements for which pred is true" {:added "1.0"} [pred xset] (reduce (fn [s k] (if (pred k) s (disj s k))) xset xset))
Comments top
No comments for select. Log in to add a comment.