foreach loops over a LIST. Your iterator returns a list of one value so foreach is satisfied.
In reply to Re: How can I create an iterator that works inside foreach()
by jwkrahn
in thread How can I create an iterator that works inside foreach()
by PUCKERING
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |