lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> Lets call it vapairs!

It's been discussed here before with the name apairs.

> Just tried to code it. Doesnt work to get the vargs into the iterator
> without packing it into a table. 

You make a C closure.

I thought I had seen a C implementation of apairs but I could not find it
in the archives. Some people seem to have done that; perhaps they can share
the code.