|
On 11/20/2010 11:08 AM, David Manura wrote:
However, I don't see a simple way to artificially advance a stateless iterator like returned by ipairs--see code in "A for statement like .... is equivalent to the code" in the manual--but you can wrap ipairs in your own stateful iterator like the above.
How about a way to access the iterator function in a for loop? Of course you could...
local it = pairs(T) for k,v in it do local skip = it(k) ... end But there could be some automatic variable like _ITER. -- - tom telliamed@whoopdedo.org