Function: avl-tree-mapf
avl-tree-mapf is a byte-compiled function defined in avl-tree.el.gz.
Signature
(avl-tree-mapf FUN COMBINATOR TREE &optional REVERSE)
Documentation
Apply FUN to all elements in AVL TREE, combine results using COMBINATOR.
The FUNCTION is applied and the results are combined in ascending order, or descending order if REVERSE is non-nil.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/avl-tree.el.gz
(defun avl-tree-mapf
(fun combinator tree &optional reverse)
"Apply FUN to all elements in AVL TREE, combine results using COMBINATOR.
The FUNCTION is applied and the results are combined in ascending
order, or descending order if REVERSE is non-nil."
(let (avl-tree-mapf--accumulate)
(avl-tree--mapc
(lambda (node)
(setq avl-tree-mapf--accumulate
(funcall combinator
(funcall fun
(avl-tree--node-data node))
avl-tree-mapf--accumulate)))
(avl-tree--root tree)
(if reverse 0 1))
(nreverse avl-tree-mapf--accumulate)))