lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> "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