Re: Slices (Was: Holes)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Slices (Was: Holes)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2010年12月15日 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})