Parcours d'apprentissage

Collections, itérateurs et threads

Hash maps, itérateurs, closures et modules, puis threads, canaux et état partagé.

8 leçons · 11 défis

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