Function: --remove-last
--remove-last is a macro defined in dash.el.
Signature
(--remove-last FORM LIST)
Documentation
Remove the last item from LIST for which FORM evals to non-nil.
Each element of LIST in turn is bound to it before evaluating
FORM. The result is a copy of LIST regardless of whether an
element is removed.
This is the anaphoric counterpart to -remove-last.
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defmacro --remove-last (form list)
"Remove the last item from LIST for which FORM evals to non-nil.
Each element of LIST in turn is bound to `it' before evaluating
FORM. The result is a copy of LIST regardless of whether an
element is removed.
This is the anaphoric counterpart to `-remove-last'."
(declare (debug (form form)))
`(nreverse (--remove-first ,form (reverse ,list))))