Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Dr_Emann
· 5y ago · 0 comments
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...
Comments
[–]
Measter
5y ago
Huh... I guess I should read the docs more carefully next time; I clearly misunderstood them.