(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
called after nextState.next, allows filtering to prepare for the next event
Provides an Iterator from a given initial path that traverses the entire tree, allows both forwards and backwards iteration.
It specifically provides an up event, allowing consumers to "pop" the element stack