]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #68705 - BijanT:ll_remove, r=Mark-Simulacrum
authorDylan DPC <dylan.dpc@gmail.com>
Thu, 20 Feb 2020 09:49:08 +0000 (10:49 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2020 09:49:08 +0000 (10:49 +0100)
commitf7ce5ff19c801a08c7b5aa2ff6f7f552e9de4a39
treec85d40526c5596303aeac01d5f4a38e816bc3532
parentde362d88ea17ab23ca2483cb798bc7aeb81a48f5
parentc797ce7877dff9189d828247493dfcada9c10e43
Rollup merge of #68705 - BijanT:ll_remove, r=Mark-Simulacrum

Add LinkedList::remove()

LinkedList::remove() removes the element at the specified index and returns it.

I added this because I think having a remove function would be useful to have, and similar functions are in other containers, like Vec and HashMap.

I'm not sure if adding a feature like this requires an RFC or not, so I'm sorry if this PR is premature.