Skip to main content

Series 5: Working with Collections - Vectors, Strings, Hash Maps

This series dives into some of the most common and useful collection types provided by the Rust standard library. You will learn how to store and manage collections of data efficiently.

Articles in this Series

  1. Vectors (Vec<T>): The Growable Array
    • Creating, updating, and reading elements from vectors.
  2. Storing UTF-8 Text with Strings (String)
    • Creating and manipulating strings.
  3. Hash Maps (HashMap<K, V>)
    • Storing key-value pairs.
  4. Iterating over Collections: The Iterator Trait
    • Using the iter(), iter_mut(), and into_iter() methods.
  5. Slices: A View into a Collection
    • A view into a part of a collection.
  6. Common Collection Methods
    • Sorting, filtering, mapping, and more.
  7. Project: Word Counter
    • Using a hash map to count the frequency of words in a text.
  8. Project: To-Do List