typeover
rust curriculum

Curriculum Collections & iteration

module 4 of 7

Collections & iteration

Practical data work in Rust. Vectors, hash maps, arrays, tuples, iterator adapters, closures, and the ownership rules that appear when collections hold or yield values.

Themes

Vec<T> is Rust's growable array. This theme teaches vec![], push, indexing, .get, ownership of elements, and passing vectors by value or slice. Planned exercises: 1. choose…

9 ready

begin →

HashMap<K, V> replaces many TypeScript object-as-map patterns, but lookups return Option<&V> and insertion may move keys and values. Planned exercises: 1. choose HashMap. 2.…

9 ready

begin →

Idiomatic Rust often transforms data with iterators instead of manual indexing. The key ownership distinction is .iter(), .iter_mut(), and .into_iter(). Planned exercises: 1.…

9 ready

begin →

Rust closures look like compact TypeScript arrow functions, but they capture by borrow, mutable borrow, or move depending on use. Planned exercises: 1. choose closure syntax. 2. re…

9 ready

begin →