This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Iterates over elements until pos of one elements decrease | |
* or end of iterator is reached. Iterating over iter changes | |
* that iterator on caller side. | |
* | |
* @param object i Last output of iter.next() with first element | |
* @param object iter Array iterator to next elements | |
* | |
* @return array Tuple of current subtree and last iter.next() object | |
* that break the loop. |