-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add .sum
method on Foldables using scala.Numeric
#3643
Comments
cc @hmemcpy |
Thanks! Yeah, I migrated some code from |
Oh no, I didn't realise it was SemigroupK syntax... we'll need to find another name to avoid conflict, then. |
I would suggest And now that I think about it, we should have |
Deleted a comment that was spam |
I would really rather we not use scala.Numeric. I think we should instead be using Ring from algebra, which we have talked about merging into this repo as a separate subproject. |
Maybe we can use Semigroup in case the algebra is not merged into this repo yet? |
It would be good to have to enable summing NonEmptyLists like standard collections, similarly with other structures.
The text was updated successfully, but these errors were encountered: