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 core::iter::Sum for Vector2d and Vector3d #115

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

sunsided
Copy link
Contributor

This implements Sum for Vector2d/Vector3d and references to them. The implementation for references is a bit annoying but simplifies summing without having to explicitly call cloned or copied on the iterator.

@sunsided sunsided force-pushed the feature/iter-sum branch 2 times, most recently from b408090 to 012bcb1 Compare July 12, 2024 10:33
@tarcieri tarcieri merged commit 1d97b4d into tarcieri:main Jul 25, 2024
11 checks passed
@sunsided sunsided deleted the feature/iter-sum branch July 27, 2024 10:55
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