lua-users home
lua-l archive

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


> I don't miss arrays at all. Lua does a good job. What I do miss are
> tuples, i.e. constant arrays (not the same as Lua tuples).
>
> In Lua, x[{1,2,3}] is legal, but not equal to another x[{1,2,3}.
> In Python, x[[1,2,3]] is illegal, but x[(1,2,3)] is legal and
> equal to another x[{1,2,3}].

that can be implemented with a function that returns an identity