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

Impl Mean for Iterator<Item = &f32> as well? #121

Open
TheNeikos opened this issue Nov 13, 2024 · 1 comment
Open

Impl Mean for Iterator<Item = &f32> as well? #121

TheNeikos opened this issue Nov 13, 2024 · 1 comment

Comments

@TheNeikos
Copy link

Currently you can't use it for an Iterator with references. You could fix it with a .copied(), but this is not always super clear, as the error simply says "mean is not implemented".

I can't think of a reason why it could be a problem

@tarcieri
Copy link
Owner

Sure, want to open a PR?

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 a pull request may close this issue.

2 participants