Function: avl-tree-member-p

avl-tree-member-p is a byte-compiled function defined in avl-tree.el.gz.

Signature

(avl-tree-member-p TREE DATA)

Documentation

Return t if an element matching DATA exists in the AVL TREE.

Otherwise return nil. Matching uses the comparison function previously specified in avl-tree-create when TREE was created.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/avl-tree.el.gz
(defun avl-tree-member-p (tree data)
  "Return t if an element matching DATA exists in the AVL TREE.
Otherwise return nil.  Matching uses the comparison function
previously specified in `avl-tree-create' when TREE was created."
  (let ((flag '(nil)))
    (not (eq (avl-tree-member tree data flag) flag))))