[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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
Hello,
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?
thank you
--
V S P
toreason@fastmail.fm
--
http://www.fastmail.fm - A no graphics, no pop-ups email service