[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lists with nil play nice for Lua 5.2
- From: Tony Finch <dot@...>
- Date: Wed, 8 Aug 2007 20:11:52 +0100
On Wed, 8 Aug 2007, Mark Hamburg wrote:
> for idx = 1, #... Do
> local v = ...[ idx ]
> -- processing
> end
How about:
for v in ... do
-- processing
end
Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
IRISH SEA: SOUTHERLY, BACKING NORTHEASTERLY FOR A TIME, 3 OR 4. SLIGHT OR
MODERATE. SHOWERS. MODERATE OR GOOD, OCCASIONALLY POOR.