Function: radix-tree-iter-mappings

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

Signature

(radix-tree-iter-mappings TREE FUN &optional PREFIX)

Documentation

Apply FUN to every mapping in TREE.

FUN is called with two arguments: KEY and VAL. PREFIX is only used internally.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/radix-tree.el.gz
(defun radix-tree-iter-mappings (tree fun &optional prefix)
  "Apply FUN to every mapping in TREE.
FUN is called with two arguments: KEY and VAL.
PREFIX is only used internally."
  (radix-tree-iter-subtrees
   tree
   (lambda (p s)
     (let ((nprefix (concat prefix p)))
       (pcase s
         ((radix-tree-leaf v) (funcall fun nprefix v))
         (_ (radix-tree-iter-mappings s fun nprefix)))))))