clojure.core/drop-last¶
Return a lazy sequence of all but the last n (default 1) items in coll
Examples¶
Note by huahaiy¶
drop-last is lazy and implemented with map, whereas butlast is not lazy and implemented with loop and recur.
See also¶
- clojure.core/drop (2)
- clojure.core/drop-while (2)
- clojure.core/butlast (4)
- clojure.core/pop (2)
Content from the matching ClojureDocs page, with authors credited on each contribution.