lua-users home
lua-l archive

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


> Er, no, that's my point:  I often use ipairs or pairs like that, but it
> feels awkward.  It would be nicer to not have a dummy variable.

There is special name of _ for dummy variable:
for _, value in ipairs (...) do ... end

There's no special reason to add specific function iterating only over values.