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