drop-last

functionsince v0.0-927 clojure.core/drop-lastEdit
(drop-last s)
(drop-last n s)

Details:

Return a lazy sequence of all but the last n items in s.

n defaults to 1.


See Also:


Source docstring:
Return a lazy sequence of all but the last n (default 1) items in coll
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn drop-last
  ([s] (drop-last 1 s))
  ([n s] (map (fn [x _] x) s (drop n s))))