Y
Hacker News
new
|
ask
|
show
|
jobs
by
Dr_Emann
1941 days ago
Yes it does exactly that. It returns an iterator over the removed items, but when that iterator is dropped, it modifies the collection. See
https://play.rust-lang.org/?version=stable&mode=debug&editio...
1 comments
Measter
1940 days ago
Huh... I guess I should read the docs more carefully next time; I clearly misunderstood them.
link