Finds an element in the splay tree and returns its value
This is a convenience function that searches for an element and returns just the value if found, or undefined if not found. Like search(), it also splays the accessed node to the root.
the value to find
the tree to search in
result containing:
Finds an element in the splay tree and returns its value
This is a convenience function that searches for an element and returns just the value if found, or undefined if not found. Like search(), it also splays the accessed node to the root.