[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: From Lua to Python?
- From: "szbnwer@..." <szbnwer@...>
- Date: Sat, 15 Jul 2017 14:49:59 +0200
> 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