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

Implement insertWith and foldlInsertWith #5

Merged
merged 2 commits into from
Apr 2, 2024

Conversation

samcowger
Copy link
Contributor

Though insertWith can be defined by appealing to the library's existing primitives, a native implementation like this ought to be more performant. This is intended to mimic Data.Map.insertWith's behavior, including the order of arguments provided to the combination function.

Also, redefine `insert` and `foldlInsert` in terms of them.
@kquick kquick merged commit 24dde3d into kquick:master Apr 2, 2024
8 checks passed
@kquick
Copy link
Owner

kquick commented Apr 2, 2024

Thank you!

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.

None yet

2 participants