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

groupsOfVarying behaves inconsistently with groups of length 0 #156

Open
rjdellecese opened this issue Nov 3, 2021 · 0 comments
Open

groupsOfVarying behaves inconsistently with groups of length 0 #156

rjdellecese opened this issue Nov 3, 2021 · 0 comments

Comments

@rjdellecese
Copy link

> import List.Extra as List
> List.groupsOfVarying [0, 1] ["a"]
[[],["a"]] : List (List String)
> List.groupsOfVarying [1, 0] ["a"]
[["a"]] : List (List String)

I would expect the second expression to evaluate to [["a"], []]. But at the very least, I would expect the two to be symmetrical!

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