function | since v0.0-1236 | clojure.core.reducers/drop | Edit |
(drop n)
(drop n coll)
Elides the first n values from the reduction of coll.
(defcurried drop
{}
[n coll]
(reducer coll
(fn [f1]
(let [cnt (atom n)]
(rfn [f1 k]
([ret k v]
(swap! cnt dec)
(if (neg? @cnt)
(f1 ret k v)
ret)))))))