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

Implement zip for VectorN and PointN #486

Merged
merged 1 commit into from
Jun 12, 2019

Conversation

mickvangelderen
Copy link
Contributor

Implements #485.

It is possible but messy to put map and zip in the Array trait. Rust doesn't support higher kinded types which would help because we want to abstract over any container, holding a fixed number of some item type. The implementation would basically need to reproduce the work in the generic-array crate which is silly.

Copy link
Collaborator

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!
bors r+

bors bot added a commit that referenced this pull request Jun 12, 2019
486: Implement zip for VectorN and PointN r=kvark a=mickvangelderen

Implements #485. 

It is possible but messy to put `map` and `zip` in the Array trait. Rust doesn't support higher kinded types which would help because we want to abstract over any container, holding a fixed number of some item type. The implementation would basically need to reproduce the work in the generic-array crate which is silly.

Co-authored-by: Mick van Gelderen <[email protected]>
@bors
Copy link
Contributor

bors bot commented Jun 12, 2019

Build succeeded

@bors bors bot merged commit a63843c into rustgd:master Jun 12, 2019
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