mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
♻️ 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:
parent
83da487b24
commit
bba3610b7b
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user