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

Feature request:: add fold to Monoid #70

Closed
bbarker opened this issue Jan 1, 2021 · 2 comments
Closed

Feature request:: add fold to Monoid #70

bbarker opened this issue Jan 1, 2021 · 2 comments

Comments

@bbarker
Copy link

bbarker commented Jan 1, 2021

One nice thing for Monoids is that we can call a fold directly on a monoidal structure without needing to specify the empty element manually when calling fold. It might be nice to have this added in as a trait method for monoid.

@bbarker
Copy link
Author

bbarker commented Jan 1, 2021

(I'd be happy to implement this at some point, but have quite a lot of Rust/Rust+FP reading to do first before I really want to dig in on this awesome library)

@bbarker
Copy link
Author

bbarker commented Jan 1, 2021

Oops, I had a moment ... forgot that should be part of Foldable.

@bbarker bbarker closed this as completed Jan 1, 2021
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

1 participant