[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: pairs(t, skey) and ipairs(t, skey)
- From: Tim Hill <drtimhill@...>
- Date: Mon, 30 Sep 2013 20:07:52 -0700
On Sep 30, 2013, at 3:51 PM, Paul K <paulclinger@yahoo.com> wrote:
> Hi All,
>
> I was looking for a way to find if there are any keys in the hash part
> of a table without iterating the table and realized that I can use
> "next" to give me the answer as it accepts a starting key:
>
> next(t, #t) returns the first key in the hash part (if any).
Do you *really* mean "keys in the hash part" or do you mean "non-numeric keys", because the two are not necessarily the same (and I don't mean just negative numeric keys).
--Tim