mozilla/rust — pull request #3697 by erickt (2012-10-08 05:14:28+00:00)
Title: libcore: add pop/swap/consume to SendMap

This patch adds a couple destructive functions to SendMap. `pop` allows you to remove and return a value, `swap` allows you to update a key and return the old value, and `consume` allows you to consume without copying all the keys/values in a map.