starwing / luaiter

A iteration library for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get an index of an array in func

brynne8 opened this issue · comments

In luaiter map and each I can only get the value, but I also want the index to be passed to the function. How can I do it?