[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: sunday afternoon whishlist
- From: spir ☣ <denis.spir@...>
- Date: Sun, 9 May 2010 20:21:26 +0200
On Sun, 9 May 2010 18:55:11 +0200
Eike Decker <zet23t@googlemail.com> wrote:
> Adding another thing to the wishlist: table.remove should allow a
> third parameter to allow efficient table slicing, e.g.
>
> table.remove(arr,1,100)
>
> instead of
>
> for i=1,100 do table.remove(arr,1) end
>
> (assuming that arr is really huge)
++
(assuming here "slicing" means "slice deletion", possibly returning the slice like pop)
Denis
________________________________
vit esse estrany ☣
spir.wikidot.com