Skip to content
New issue

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

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

Already on GitHub? # to your account

introduce reduce with inout accumulator parameter #2611

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kjaklinovic
Copy link
Contributor

The scan function has a variant in which it takes an input parameter as the first accumulator argument. I find that function more convenient since it requires a bit less code for the accumulator. I noticed that the same is not true for reduce, so I decided to introduce this behavior. I pretty much followed the same code style as scan has. I did the same for tests too, for every ~second existing test for reduce I introduced the new variant of the operator.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant