Proposal for containers: Add 'pop' function to Data.Map

Tom Ellis tom-lists-haskell-cafe-2017 at jaguarpaw.co.uk
Sun Dec 6 16:29:45 UTC 2020


On Sun, Dec 06, 2020 at 11:25:33AM -0500, David Feuer wrote:
> The name pop makes me think of a stack. Is this use of the word common?

Python uses that name, which is why I'm familiar with it:

>>> d = {'a': 1, 'b': 2}
>>> d.pop('b')
2
>>> d
{'a': 1}


More information about the Libraries mailing list