[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: BUG in table.concat
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 1 Jul 2008 12:57:10 -0300
> "table.concat (table [, sep [, i [, j]]])
> Given an array where all elements are strings or numbers, returns
> table[i]..sep..table[i+1] ··· sep..table[j].
> [...]
> the default for j is the length of the table.
plus
> "For a regular array, with non-nil values from 1 to a given n, its
> length is exactly that n,
> the index of its last value. If the array has "holes" (that is, nil
> values between other non-nil values),
> then #t may be any of the indices that directly precedes a nil value
gives: table.concat of a table with holes concats elements from 1 to
any of the indices that directly precedes a nil value.
> My head is spinning:-)
Get some rest.
-- Roberto