1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
local function iterator(index, table) 	index = index + 1 	 	return table[index], index end function each(table) 	return iterator, 0, table end
1
2
3
2
3
for id in each(player(0, "table")) do 	print(id) end