Skip to content

CCMap: implement {of,add}_*_with family of function with update #352

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

Merged
merged 1 commit into from
Feb 7, 2021

Conversation

aspiwack
Copy link
Contributor

@aspiwack aspiwack commented Feb 7, 2021

This is comparable in conciseness and clarity as an explicit try/with
but it paves the way for a more efficient implementation using the
update from the Stdlib which, I presume, uses a one-pass algorithm.

I didn't do the same for Hashtbl because it isn't clear that there is a
beneficial such implementation for hash tables.

@aspiwack aspiwack force-pushed the ccmap/of-iter-with-update branch from d5e53fd to 17f9fae Compare February 7, 2021 17:24
This is comparable in conciseness and clarity as an explicit try/with
but it paves the way for a more efficient implementation using the
`update` from the Stdlib which, I presume, uses a one-pass algorithm.
@aspiwack aspiwack force-pushed the ccmap/of-iter-with-update branch from 17f9fae to 2084066 Compare February 7, 2021 17:33
@c-cube c-cube merged commit 85decd7 into c-cube:master Feb 7, 2021
@c-cube
Copy link
Owner

c-cube commented Feb 7, 2021

merci bien 😁

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