Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Iteration index() within loops #202

Open
SolidSnakeGr opened this issue Jul 17, 2018 · 0 comments
Open

[Feature Request] Iteration index() within loops #202

SolidSnakeGr opened this issue Jul 17, 2018 · 0 comments

Comments

@SolidSnakeGr
Copy link

SolidSnakeGr commented Jul 17, 2018

I've just come accross this issue..

So far, we can use the key() and iteration() functions when running within loops but sometimes an index() function (return the current iteration number) would also be useful in case we would like to make something happen when the first/specified/last iteration occurs or add the iteration number in a class.

Especially when working with associative arrays or objects it's necessary to be able to retrieve the current index of the iteration.

Would that be hard to achieve?

@SolidSnakeGr SolidSnakeGr changed the title [FEATURE REQUEST] Iteration index() within loops [Feature Request] Iteration index() within loops Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant