I want to write normal code that takes a generic iterators as a parameter, and then does stuff to the values the iterator makes:
function iterator(...)
for x in ... do
-- do stuff
end
end
But in general, iterators return more than one thing, e.g., next returns i, v.
Is there an elegant way to get all of the things the iterator returns, since I can't actually use ... as the variable in a for (I wish I could)?
for a, b, c, d, e, f, g, h, i, j, k, l, m in ... do
--- blah...

1 comment
Solved, probably.