Python1320

Untitled

Dec 15th, 2010
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 KB | None | 0 0
  1. function next(tbl, iteration)
  2.     local count = 0
  3.     for k,v in pairs(tbl) do
  4.         count = count + 1
  5.        
  6.         if count == iteration then
  7.             return k,v
  8.         end
  9.     end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment