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

[IDEA] provide index, revIndex and length variables in :map prefix #6118

Closed
saqimtiaz opened this issue Oct 14, 2021 · 2 comments · Fixed by #6149
Closed

[IDEA] provide index, revIndex and length variables in :map prefix #6118

saqimtiaz opened this issue Oct 14, 2021 · 2 comments · Fixed by #6149

Comments

@saqimtiaz
Copy link
Contributor

In the :map filter run prefix, we should provide access to index, revIndex and length variables as we already do in the :reduce filter run prefix.

Finding myself using :reduce even when :map would be more appropriate, as I need the index variable.

@Jermolene
Copy link
Owner

Thanks @saqimtiaz, I hadn't noticed the omission, but definitely worth fixing.

@saqimtiaz
Copy link
Contributor Author

It is my own oversight when adding the :map prefix. Created an issue so I remember this for when I have the time to create a PR.

@saqimtiaz saqimtiaz changed the title [IDEA] provide index, revIndex and and length variables in :map prefix [IDEA] provide index, revIndex and length variables in :map prefix Oct 16, 2021
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

Successfully merging a pull request may close this issue.

2 participants