[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Slices (Was: Holes)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 15 Dec 2010 19:44:01 -0200
> Two extensions to Lua needed:
> 3:6 --> {3,4,5,6}
> a[{3,4,5,6}] --> {a[3],a[4],a[5],a[6]}
The second at least can be done with __call if you use the syntax
a{3,4,5,6} or a({3,4,5,6})