Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function _G.iterch(str)
- local chars, i = {}, 0
- for c in str:gmatch"." do
- chars[#chars+1] = c
- end
- return function()
- i = i+1
- if i <= #chars then return chars[i] end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement