The Slice type in Rust
Rust has a built-in type called Slice that is used to reference a contiguous sequence of elements in a collection...
For further actions, you may consider blocking this person and/or reporting abuse
I'm missing the ability to define the end of the slice as inclusive in this otherwise very good description, e.g. like
s[1..=3].you are right, thanks for pointing it out!
New Rust guide!🔥
you are welcome
Nice piece! Slices of collection types are something I’ve kind of had a hard time grasping, especially which part would be inclusive vs. which would be exclusive, so this helps for sure 👍
you are welcome