Hi, I am making my own function like pairs() but doesn't work with for loop..pls tell what to do?
function mypairs(t)
for key = 0,#t do
if key == 0 then
return(next t)
elseif key >= 1 then
return(next t,key)
elseif key == #t then
break
end
end
end