lua-users home
lua-l archive

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


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