Function: -drop-last
-drop-last is a byte-compiled function defined in dash.el.
Signature
(-drop-last N LIST)
Documentation
Return a copy of LIST without its last N items.
Return a copy of LIST if N is zero or less. Return nil if LIST contains N items or fewer.
See also: -drop.
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -drop-last (n list)
"Return a copy of LIST without its last N items.
Return a copy of LIST if N is zero or less.
Return nil if LIST contains N items or fewer.
See also: `-drop'."
(declare (side-effect-free t))
(static-if (fboundp 'dash--take)
(dash--take (- (length list) n) list)
(nbutlast (copy-sequence list) n)))