-
Notifications
You must be signed in to change notification settings - Fork 24
Add fromNonEmpty operation #1
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
Conversation
I think I'd rather just pass the function in: foldNonEmpty :: forall f a r. (a -> f a -> r) -> NonEmpty f a -> r |
I thought about that, but providing the fold doesn't help too much as |
Although... maybe. I guess |
How about this then? One for the lazy, and one for when you want to do it properly? 😉 |
Why not use |
Uh, because I foolishly forgot |
Well it depends how you interpret |
I did see what you were getting at, I just wonder about that naming in the context of |
|
Actually, I guess all you need is |
How would that work? You need to put
|
Ah right, I thought |
There we go. |
👍 Thanks! |
This kinda sucks maybe? Is there a better way of doing this that you can think of?