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

Adds Dict.Extra.{invertAll,upsert,updateIfExists} #62

Merged
merged 3 commits into from
Jul 26, 2024
Merged

Conversation

gampleman
Copy link
Collaborator

Closes #59. Closes #58.

src/Dict/Extra.elm Outdated Show resolved Hide resolved

-}
invertAll : Dict comparable1 comparable2 -> Dict comparable2 (Set comparable1)
invertAll dict =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also feel like a (fuzz) test for this would be nice since it isn't completely trivial

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up adding three :)

@gampleman gampleman requested a review from lue-bird July 26, 2024 09:38
@gampleman gampleman merged commit feeafd3 into master Jul 26, 2024
4 checks passed
@gampleman gampleman deleted the dict-invert-all branch July 26, 2024 16:10
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.

Add Dict.Extra.invertAll Add Dict.Extra.updateIfExists
2 participants