Learning path

Collections, iterators and threads

Hash maps, iterators, closures and modules, then threads, channels and shared state.

8 lessons · 11 challenges

  1. Lesson 2 challenges Hash Maps Store and look up values by key with HashMap.
  2. Lesson 2 challenges Word Frequency Counter Count how often each word appears with a HashMap.
  3. Lesson 2 challenges Iterators Process collections with filter, map, sum and other iterator methods.
  4. Lesson 1 challenge Closures Write anonymous functions that capture variables around them.
  5. Lesson 1 challenge Modules and Visibility Organize code into modules and choose what is public with pub.
  6. Lesson 1 challenge Threads Run code in parallel with thread::spawn and collect the results with join.
  7. Lesson 1 challenge Channels Send messages from one thread to another with mpsc::channel.
  8. Lesson 1 challenge Shared State with Arc and Mutex Let several threads change one value safely.