lua-users home
lua-l archive

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


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