Function: map-pairs
map-pairs is a byte-compiled function defined in map.el.gz.
Signature
(map-pairs MAP)
Documentation
Return the key/value pairs in MAP as an alist.
The default implementation delegates to map-apply.
Other relevant functions are documented in the map group.
Shortdoc
;; map
(map-pairs (list 'bar 1 'foo 2 'baz 3))
=> ((bar . 1) (foo . 2) (baz . 3))
(map-pairs (list '(bar . 1) '(foo . 2) '(baz . 3)))
=> ((bar . 1) (foo . 2) (baz . 3))
(map-pairs [bar foo baz])
=> ((0 . bar) (1 . foo) (2 . baz))
(map-pairs #s(hash-table data (bar 1 foo 2 baz 3)))
=> ((bar . 1) (foo . 2) (baz . 3))
Implementations
(map-pairs MAP) in `map.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/map.el.gz
(cl-defgeneric map-pairs (map)
"Return the key/value pairs in MAP as an alist.
The default implementation delegates to `map-apply'."
(map-apply #'cons map))