[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A question about table's length
- From: Leo Razoumov <slonik.az@...>
- Date: Thu, 31 Dec 2009 08:44:45 -0500
On 2009-12-31, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Wed, Dec 30, 2009 at 12:05 PM, Philippe Lhoste <PhiLho@gmx.net> wrote:
> > Perhaps the comment from ltable.c:
>
> [..snip..]
>
> A map() function could easily generate lots of holes:
>
> map(tonumber,{'10','x','20','y'}) --> {10,nil,20,nil}
>
> [..snip..]
> steve d.
>
I wish that "map" would convert nil to false before pushing it into
resultant array so that it becomes {10, false, 20, false} avoiding
holes and preserving the length. Within conditionals like "if",
"while" etc nil and false are equivalent.
--Leo--
- References:
- A question about table's length, h visli
- Re: A question about table's length, h visli
- Re: A question about table's length, Klaus Ripke
- Re: A question about table's length, h visli
- Re: A question about table's length, Klaus Ripke
- Re: A question about table's length, Vaughan McAlley
- Re: A question about table's length, David Manura
- Re: A question about table's length, steve donovan
- Re: A question about table's length, Philippe Lhoste
- Re: A question about table's length, steve donovan