mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-01-26 04:22:03 +02:00
bbfb4c7e63
The existing test functions only check if a kind of fruit exists in the hashmap, but not if the amount of fruits is higher than zero. This new test function solves this.
Hashmaps
A hash map allows you to associate a value with a particular key. You may also know this by the names unordered map in C++, dictionary in Python or an associative array in other languages.
This is the other data structure that we've been talking about before, when talking about Vecs.