lua-users home
lua-l archive

Re: The terms "sequence", "list", etc in Lua 5.2.0 (beta-rc1)

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


Xavier Wang <weasley.wx@gmail.com> writes:
> The length of a table t is only defined if the table is a sequence,
> that is, all its numeric keys comprise the set {1..n} for some
> integer n. 
>
> is that mean, a empty table ({}) has no length defined?
Huh? All its numeric keys satisfy any imaginable predicate, including
impossible ones.
-- 
David Kastrup

AltStyle によって変換されたページ (->オリジナル) /