function | since v0.0-927 | clojure.core/remove | Edit |
(remove pred)
(remove pred coll)
Returns a lazy sequence of the items in coll
for which (pred item)
returns
false.
pred
must be free of side-effects.
Returns a transducer when no collection is provided.
Returns a lazy sequence of the items in coll for which (pred item) returns logical false. pred must be free of side-effects. Returns a transducer when no collection is provided.
(defn remove
([pred] (filter (complement pred)))
([pred coll]
(filter (complement pred) coll)))