Skip to content

Add pop for maps and sets#1152

Merged
meooow25 merged 1 commit intohaskell:masterfrom
meooow25:map-set-pop
Jan 1, 2026
Merged

Add pop for maps and sets#1152
meooow25 merged 1 commit intohaskell:masterfrom
meooow25:map-set-pop

Conversation

@meooow25
Copy link
Copy Markdown
Contributor

This operation has been requested since it comes up once in a while. Currently the best way to perform it is to separately use lookup and delete or use updateLookupWithKey. Both of these are less efficient and harder to read.

Closes #1134.

This operation has been requested since it comes up once in a while.
Currently the best way to perform it is to separately use `lookup` and
`delete` or use `updateLookupWithKey`. Both of these are less efficient
and harder to read.
@meooow25
Copy link
Copy Markdown
Contributor Author

This has been sitting for a while, I'll merge in a few days if there is nothing to discuss.

@meooow25 meooow25 merged commit 32ed12a into haskell:master Jan 1, 2026
14 checks passed
@meooow25 meooow25 deleted the map-set-pop branch January 1, 2026 18:04
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 pop for sets and maps

1 participant