Skip to navigation
Subtract the size number from the vector length
12.06.23
```rust let mut n = p.len() as i32; n = &n - 1; ```
https://doc.rust-lang.org/std/vec/struct.Vec.html#method.set_len
Reply
Anonymous
Information Epoch 1745462996
Using text data files.
Home
Notebook
Contact us