[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: pairs(t, skey) and ipairs(t, skey)
- From: Paul K <paulclinger@...>
- Date: Mon, 30 Sep 2013 17:32:00 -0700
Hi Liam,
>> next(t, #t) returns the first key in the hash part (if any).
> Does it?
> What does the length operator return for a table which has no array part or has holes?
It should have been "#t > 0 and #t or nil" to account for the case
when #t is zero. For the table with holes it does exactly what I need
as it starts from the key after the hole.
Paul