♻️ Rename shadowed 'fn' parameter to 'pred' in removev

The removev function used 'fn' as its predicate parameter name,
which shadows clojure.core/fn. Rename to 'pred' for clarity and
to follow the naming convention used elsewhere in the namespace.
This commit is contained in:
Andrey Antukh 2026-04-14 20:17:48 +00:00 committed by Belén Albeza
parent 83da487b24
commit bba3610b7b

View File

@ -420,9 +420,9 @@
coll)))
(defn removev
"Returns a vector of the items in coll for which (fn item) returns logical false"
[fn coll]
(filterv (comp not fn) coll))
"Returns a vector of the items in coll for which (pred item) returns logical false"
[pred coll]
(filterv (comp not pred) coll))
(defn filterm
"Filter values of a map that satisfy a predicate"