function | since v0.0-1236 | clojure.core.reducers/filter | Edit |
(filter pred)
(filter pred coll)
Retains values in the reduction of coll for which (pred val) returns logical true. Foldable.
(defcurried filter
{}
[pred coll]
(folder coll
(fn [f1]
(rfn [f1 k]
([ret k v]
(if (pred k v)
(f1 ret k v)
ret))))))