What if the loop is left by last , next , redo , return or goto ?
Nice catch. In the Python library, this must be handled explicitly by "closing" the iterator.
In reply to Re^2: Getting for() to accept a tied array in one statement
by perlancar
in thread Getting for() to accept a tied array in one statement
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |