Hello,
How can I, concisely (one line) and without borrowing error, remove a value from Vec in HashMap ? Code example:
use std::collections::HashMap;
fn main() {
let mut my_hash_of_vec: HashMap<usize, Vec<usize>> = HashMap::new();
my_hash_of_vec.insert(0, vec![3, 1, 0, 2]);
// Remove "1" value from vector at my_hash_of_vec 0 position
}
In my tests, i have cannot borrow
*xxxxxas mutable as it is behind a
& reference
...
Thanks !