RedBlackTree.lastIter
Returns an iterator pointing to the last entry of the tree.
Arguments
None
Return values
iterator
is a RedBlackTreeIterator pointing to the last entry. It will be an iterator with the biggest key because a tree is always sorted. If the tree is empty, an “end” iterator is returned.
Complexity
Constant
Example
Output:
{ key: 3481; value: 135; }