lua-users home
lua-l archive

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


On Mon, Nov 25, 2013 at 10:24 AM, John Hind <john.hind@zen.co.uk> wrote:
> Date: Mon, 25 Nov 2013 10:03:56 +0000
> From: Kevin Martin <kev82@khn.org.uk>
> Subject: Re: table library changes (was Re: table.new in 5.3?)

Why privilege the one specific case 'ipairs' does - what about indexing the list in reverse, or between two limits? Pretty soon you are falling back on numeric 'for' anyway because 'ipairs' does not do exactly what you want.

Personally I find myself using ipairs() a lot more often than using for to iterate only part of a table.

--
Sent from my Game Boy.