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

Access to index in "reduce" operation #111

Open
youmustfight opened this issue Jun 8, 2022 · 0 comments
Open

Access to index in "reduce" operation #111

youmustfight opened this issue Jun 8, 2022 · 0 comments

Comments

@youmustfight
Copy link

Loving the library so far! One thing that I'm juggling is doing an array operation that references the index. To avoid messing with the api of the map op, I was wondering if we could extend what's accessible in a reduce to include an "index" selector. I see right now it's just "current" and "accumulator"

{current: current, accumulator: accumulator}

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