RedBlackTree.firstIter
Returns an iterator pointing to the first entry of the tree.
Arguments
None
Return values
iterator
is a RedBlackTreeIterator pointing to the first entry. It will be an iterator with the smallest key because a tree is always sorted. If the tree is empty, an “end” iterator is returned.
Complexity
Constant
Example
Output:
{ key: -25; value: "element"; }