[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: filter an array in place
- From: Doug Currie <doug.currie@...>
- Date: Sat, 15 Jan 2011 17:28:55 -0500
On Jan 15, 2011, at 4:48 PM, Tomas Guisasola Gorham wrote:
> t = { "a", "b", "a", }
> filterinplace (function (r) return r=="a" end, t)
> for i = 1, #t do print(i,v) end
>
> The result was:
>
> 1 nil
> 2 nil
>
Perhaps you meant:
for i = 1, #t do print(i,t[i]) end
e
- References:
- filter an array in place, Emmanuel Oga
- Re: filter an array in place, Drake Wilson
- Re: filter an array in place, Romulo
- Re: filter an array in place, Drake Wilson
- Re: filter an array in place, Romulo
- Re: filter an array in place, Drake Wilson
- Re: filter an array in place, Romulo
- Re: filter an array in place, steve donovan
- Re: filter an array in place, Eduardo Ochs
- Re: filter an array in place, Tomas Guisasola Gorham