Function: -map-last
-map-last is a byte-compiled function defined in dash.el.
Signature
(-map-last PRED REP LIST)
Documentation
Use PRED to determine the last item in LIST to call REP on.
Return a copy of LIST where the last item for which PRED returns non-nil is replaced with the result of calling REP on that item.
See also: -map-when, -replace-last
Source Code
;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -map-last (pred rep list)
"Use PRED to determine the last item in LIST to call REP on.
Return a copy of LIST where the last item for which PRED returns
non-nil is replaced with the result of calling REP on that item.
See also: `-map-when', `-replace-last'"
(declare (important-return-value t))
(nreverse (-map-first pred rep (reverse list))))