-
Notifications
You must be signed in to change notification settings - Fork 28
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
Change type of foldl' back and implement 'foldL' instead #136
Comments
Several unresolved questions:
|
I don't really care about |
Perhaps |
@Pastafarianist What this |
"flipped", but this is counterntuitive. |
I agree with @volhovm , the F in the end immediately makes me think of functors. But I'd prefer |
Okay, I can introduce new function: flipfoldl :: (Container t, Element t ~ a) => (a -> b -> b) -> b -> t -> b with strict semantic and implement it manually for every data type. |
I'd expect |
[#136] Return type of foldl' back, add flipfoldl'
foldl' (/) 1 [2,3]
doesn't do what it should according to type.And changing type of
foldl'
introduces silent breakage.Naming is another question. As well as an implementation of this function.
The text was updated successfully, but these errors were encountered: