Function: map-apply
map-apply is a byte-compiled function defined in map.el.gz.
Signature
(map-apply FUNCTION MAP)
Documentation
Apply FUNCTION to each element of MAP and return the result as a list.
FUNCTION is called with two arguments, the key and the value.
The default implementation delegates to map-do.
Implementations
#'(map array) in `map.el'.
Undocumented
#'(map hash-table) in `map.el'.
Undocumented
#'(map list) in `map.el'.
Undocumented
#'map in `map.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/map.el.gz
(cl-defgeneric map-apply (function map)
"Apply FUNCTION to each element of MAP and return the result as a list.
FUNCTION is called with two arguments, the key and the value.
The default implementation delegates to `map-do'."
(let ((res '()))
(map-do (lambda (k v) (push (funcall function k v) res)) map)
(nreverse res)))