Function: radix-tree-prefixes

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

Signature

(radix-tree-prefixes TREE STRING)

Documentation

Return an alist of all bindings in TREE for prefixes of STRING.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/radix-tree.el.gz
;; (defun radix-tree-trim (tree string)
;;   "Return a TREE which only holds entries \"related\" to STRING.
;; \"Related\" is here defined as entries where there's a `string-prefix-p' relation
;; between STRING and the key."
;;   (radix-tree-trim tree string 0))

(defun radix-tree-prefixes (tree string)
  "Return an alist of all bindings in TREE for prefixes of STRING."
  (radix-tree--prefixes tree string 0 nil))