(positions pred coll)
find positions of elements matching the predicate
(positions even? [5 5 4 4 3 3 2 2]) => [2 3 6 7]
find positions of elements matching the predicate (positions even? [5 5 4 4 3 3 2 2]) => [2 3 6 7]
(remove-index coll i)
removes element at the specified index
(remove-index [:a :b :c :d] 2) => [:a :b :d]
removes element at the specified index (remove-index [:a :b :c :d] 2) => [:a :b :d]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close