-
Notifications
You must be signed in to change notification settings - Fork 246
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
Revise definitions of Data.List.Base.scanl|inits
; add Data.List.NonEmpty.Base.scanl⁺|inits⁺
#2269
Conversation
Hmmm, looks as though I've screwed up the |
Yes, other than that, this looks really good! |
Hopefully that's sorted out now. |
So I think we've (now) agreed to find a better home for this (and #2258 ) under |
Aaargh: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the improvements!
In general, some list operations always return non-empty lists, so this should be expressed in types; and then one can choose to forget the extra information of non-emptiness using a conversion to plain lists.
Now see #2395 |
Fixes #2267 . See also the discussion on #2258 .