[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: [Q] how to anticipate last iteration in for .. in pairs
- From: "V S P" <toreason@...>
- Date: Mon, 04 May 2009 11:05:14 -0400
what's a way to anticipate the last iteration
in loop over a table
for colnm, coltype in pairs(tb_columns) do
I understand that I can get the table length, and then
increment a counter, but for some reason I thought
the table length thing was not reliable at all the cases...
but cannot find a reference to it
is there a better way?
V S P
http://www.fastmail.fm - A no graphics, no pop-ups email service