Step Into Rust · Lesson 7 · Robust Rust
Vectors, Slices & Iterators
Vec, slices, iterator chains, HashMap, sorting and deduplicating.
- ~30 minreading and coding
- 4missions
- membersaccess
- Rustlanguage
Part of Step Into Rust. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.
Vec<T> is the dynamic array you built by hand with realloc in C, with bounds checks:
In this lesson
- Vec<T>: a growable array
- Slices
- Iterators
- HashMap
Missions
- Grow a vector
- An iterator chain
- Count words
- Sort and deduplicate