Function: mapp
mapp is a byte-compiled function defined in map.el.gz.
Signature
(mapp MAP)
Documentation
Return non-nil if MAP is a map (alist/plist, hash-table, array, ...).
Other relevant functions are documented in the map group.
Shortdoc
;; map
(mapp (list 'bar 1 'foo 2 'baz 3))
=> t
(mapp (list '(bar . 1) '(foo . 2) '(baz . 3)))
=> t
(mapp [bar foo baz])
=> t
(mapp "this is a string")
=> t
(mapp #s(hash-table data (bar 1 foo 2 baz 3)))
=> t
(mapp 'nil)
=> t
(mapp nil)
=> t
(mapp (make-char-table 'shortdoc-test))
=> t
Implementations
(mapp MAP) in `map.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/map.el.gz
(cl-defgeneric mapp (map)
"Return non-nil if MAP is a map (alist/plist, hash-table, array, ...)."
(or (listp map)
(hash-table-p map)
(arrayp map)))