lookup By Value
fun lookupByValue( root: LookupTree<Element, Result>, argValue: A_BasicObject, memento: Memento, lookupStats: LookupStatistics): Result
Content copied to clipboard
Use the given singular value to traverse the tree. Answer the solution, a Result. Uses iteration rather than recursion to limit stack depth.
Return
The Result.
Parameters
root
The LookupTree to search.
arg Value
The input value.
memento
A value potentially used for constructing Results in parts of the tree that have not yet been constructed.
lookup Stats
The LookupStatistics in which to record the lookup.