Function: radix-tree-lookup

radix-tree-lookup is a byte-compiled function defined in radix-tree.el.gz.

Signature

(radix-tree-lookup TREE KEY)

Documentation

Return the value associated to KEY in radix TREE.

If not found, return nil.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/radix-tree.el.gz
(defun radix-tree-lookup (tree key)
  "Return the value associated to KEY in radix TREE.
If not found, return nil."
  (pcase (radix-tree--lookup tree key 0)
    (`(t . ,val) val)
    ((pred numberp) nil)
    (val val)))