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

Remove reference to term "accumulator" #773

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

pesterhazy
Copy link
Contributor

As I understand it, the term "accumulator" is typically used to refer, not to the combining function f, but to the first argument of the function.

The reducer function f takes the current value of the accumulator and returns the updated value.

When reading this excellent guide coming from a Clojure background, the use of accumulator in the text struck me as confusing.

Reference for the (I think) typical use of "accumulator": https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce

@quii quii merged commit 0aa2b68 into quii:main Jun 7, 2024
1 check passed
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 this pull request may close these issues.

2 participants