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

Initial proposal for Population Variance #46

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

fdbeirao
Copy link
Contributor

This is a proposed implementation for #36

I am still a bit confused with the edge case that on main, if I provide [] instead of a List with numbers, I am not getting the expected Err NotEnoughItems and I don't understand why.

Also, trying to run roc test (after uncommenting the expect) crashes, as reported on roc-lang/roc#5482


Current output of running roc run --linker=legacy

σ² = 5032.13888888889

fdbeirao and others added 3 commits May 30, 2023 15:25
This is a proposed implementation for roc-lang#36

I am still a bit confused with the edge case that on main, if I provide `[]` instead of a List with numbers, I am not getting the expected `Err NotEnoughItems` and I don't understand why.

Also, trying to run `roc test` crashes, as reported on roc-lang/roc#5482
@Anton-4
Copy link
Collaborator

Anton-4 commented May 31, 2023

Thanks @fdbeirao! Your PR was already excellent but I tried to make some small improvements because we advertise our examples as "the gold standard" 😄

Let me know if you disagree with any of my changes.

We can merge this once roc-lang/roc#5482 has been fixed and a README has been added.

@Anton-4 Anton-4 added the blocked Blocked on an issue label May 31, 2023
@fdbeirao
Copy link
Contributor Author

Thank you for your commits @Anton-4, and for adding the output expectation tests. 🙏
I am happy I could make a small contribution, roc is a delightful language.

@lukewilliamboswell
Copy link
Collaborator

This doesn't look blocked any longer.

@fdbeirao are you interested in resolving up the merge conflicts and updating to latest main?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked on an issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants