lookupByValue

fun lookupByValue(    root: LookupTree<Element, Result>,     argValue: A_BasicObject,     memento: Memento,     lookupStats: LookupStatistics): Result

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.

argValue

The input value.

memento

A value potentially used for constructing Results in parts of the tree that have not yet been constructed.

lookupStats

The LookupStatistics in which to record the lookup.