search for "gather / take"
> which is to throw an exception at the end of the iteration rather than try to return a specific value
you can use goto for a poor man's solution here.
In reply to Re^4: An iterator for (not "iterating") a recursive data structure.
by LanX
in thread An iterator for (not "iterating") a recursive data structure.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |