Function: transient--mapn
transient--mapn is a byte-compiled function defined in transient.el.
Signature
(transient--mapn FUNCTION &rest LISTS)
Documentation
Apply FUNCTION to elements of LISTS.
Like cl-mapcar but while that stops when the shortest list
is exhausted, continue until the longest list is, using nil
as stand-in for elements of exhausted lists.
Source Code
;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
(defun transient--mapn (function &rest lists)
"Apply FUNCTION to elements of LISTS.
Like `cl-mapcar' but while that stops when the shortest list
is exhausted, continue until the longest list is, using nil
as stand-in for elements of exhausted lists."
(let (result)
(while (catch 'more (mapc (lambda (l) (and l (throw 'more t))) lists) nil)
(push (apply function (mapcar #'car-safe lists)) result)
(setq lists (mapcar #'cdr lists)))
(nreverse result)))