Lernpfad

Collections, Iteratoren und Threads

Hash Maps, Iteratoren, Closures und Module, dann Threads, Channels und geteilter Zustand.

8 Lektionen · 11 Challenges

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