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

Add #reduce -> #sum mutations #1202

Merged
merged 1 commit into from
Mar 7, 2021
Merged

Add #reduce -> #sum mutations #1202

merged 1 commit into from
Mar 7, 2021

Conversation

dgollahon
Copy link
Collaborator

Adds:

  • a.reduce(:+) -> a.sum
  • a.reduce(0, &:+) -> a.sum(0)
  • ...

@dgollahon dgollahon requested a review from mbj January 5, 2021 20:59
@dgollahon dgollahon force-pushed the add-sum-mutations branch 2 times, most recently from 630d9e8 to a2478c1 Compare January 10, 2021 01:46
Adds:
  * `a.reduce(:+)`     -> `a.sum`
  * `a.reduce(0, &:+)` -> `a.sum(0)`
  * ...
@mbj mbj enabled auto-merge March 7, 2021 21:45
@mbj mbj merged commit 4d53fb1 into master Mar 7, 2021
@mbj mbj deleted the add-sum-mutations branch March 7, 2021 21:52
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