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

Add combinators on Semigroup, Monoid, Aggregator to reverse order. #741

Open
johnynek opened this issue Nov 7, 2019 · 1 comment
Open

Comments

@johnynek
Copy link
Collaborator

johnynek commented Nov 7, 2019

see comment here:

#739 (comment)

reversing the order of semigroup preserves it being a semigroup, as does putting a constant element between every pair. This could be a combinator on semigroup that we could propagate up to other Semigroup related abstractions, e.g. Aggregator, Fold, Scan.

@regadas
Copy link
Collaborator

regadas commented Feb 1, 2020

Hi @johnynek just saw your change @ typelevel/cats#3279 ... I think it will be handy for this one.

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

2 participants