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

Additional monoid functions #1358

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

YarinHeffes
Copy link
Collaborator

Added mconcatmap, mcommute?, mconcat! and mconcatmap!.

  • mconcatmap extends concatmap, otherwise known as flat-map, to any collection that implements Monoid and Foldable.

  • mcommute? checks ab = ba for types that implement Eq and Semigroup.

The others are the complements for iterators.

Taken from #1243.

@stylewarning stylewarning merged commit 3e18f2a into coalton-lang:main Jan 16, 2025
25 checks passed
@YarinHeffes YarinHeffes deleted the monoid-features branch January 16, 2025 20:27
@YarinHeffes YarinHeffes mentioned this pull request Jan 17, 2025
7 tasks
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

Successfully merging this pull request may close these issues.

2 participants