Iterate over the nodes within the sequence, calling the supplied iteratee for each one.
This is an application of the Internal Iterator pattern in the GOF book.
The nodes being iterated over can be safely modified in the following ways, all other modifications have undefined behaviour:
- Node can be removed.
- Node can be changed.
- Nodes can be inserted immediately before and immediately after the node. The inserted nodes will not be iterated over during this iteration.
@param nodeIteratee called for each node within this sequence.