[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why no for table-iterator like e. g. "hashpairs"?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 1 Nov 2019 14:23:25 -0300
> Another example is this:
>
> $ lua -e 't={x=1,y=2,[1]=3,[2]=4,[3]=5}; for k,v in pairs(t) do print(k,v) end'
Note that, in this example, the table is a proper sequence since the
beginning.
-- Roberto