Function: map-nested-elt
map-nested-elt is a byte-compiled function defined in map.el.gz.
Signature
(map-nested-elt MAP KEYS &optional DEFAULT)
Documentation
Traverse MAP using KEYS and return the looked up value or DEFAULT if nil.
MAP can be a nested map composed of alists, plists, hash-tables, and arrays.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/map.el.gz
(defun map-nested-elt (map keys &optional default)
"Traverse MAP using KEYS and return the looked up value or DEFAULT if nil.
MAP can be a nested map composed of alists, plists, hash-tables,
and arrays."
(or (seq-reduce (lambda (acc key)
(when (mapp acc)
(map-elt acc key)))
keys
map)
default))