Function: -remove-last
-remove-last is a byte-compiled function defined in dash.el.
Signature
(-remove-last PRED LIST)
Documentation
Remove the last item from LIST for which PRED returns non-nil.
The result is a copy of LIST regardless of whether an element is removed.
Alias: -reject-last.
This function's anaphoric counterpart is --remove-last.
See also -map-last, -remove-item, and -remove-first.
Aliases
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -remove-last (pred list)
"Remove the last item from LIST for which PRED returns non-nil.
The result is a copy of LIST regardless of whether an element is
removed.
Alias: `-reject-last'.
This function's anaphoric counterpart is `--remove-last'.
See also `-map-last', `-remove-item', and `-remove-first'."
(declare (important-return-value t))
(--remove-last (funcall pred it) list))