in reply to How can I create an iterator that works inside foreach()

foreach loops over a LIST. Your iterator returns a list of one value so foreach is satisfied.

  • Comment on Re: How can I create an iterator that works inside foreach()