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

Mean of numbers #977

Open
xeruf opened this issue Aug 1, 2024 · 0 comments
Open

Mean of numbers #977

xeruf opened this issue Aug 1, 2024 · 0 comments

Comments

@xeruf
Copy link

xeruf commented Aug 1, 2024

Would be great to have a helper to calculate the mean of an iterator of items which are both summable and divisable, by summing the elements and then dividing by the amount of elements.
In my case useful because I want the mean after calling filter_map, which means I now need to either collect or iterate in a for loop and count up.

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

No branches or pull requests

1 participant