|
|
@ -14,7 +14,7 @@ structures that are used very often in Rust programs:
|
|
|
|
* A *vector* allows you to store a variable number of values next to
|
|
|
|
* A *vector* allows you to store a variable number of values next to
|
|
|
|
each other.
|
|
|
|
each other.
|
|
|
|
* A *hash map* allows you to associate a value with a particular key.
|
|
|
|
* A *hash map* allows you to associate a value with a particular key.
|
|
|
|
You may also know this by the names *map* in C++, *dictionary* in
|
|
|
|
You may also know this by the names [*unordered map* in C++](https://en.cppreference.com/w/cpp/container/unordered_map),
|
|
|
|
Python or an *associative array* in other languages.
|
|
|
|
[*dictionary* in Python](https://docs.python.org/3/tutorial/datastructures.html#dictionaries) or an *associative array* in other languages.
|
|
|
|
|
|
|
|
|
|
|
|
[Rust book chapter](https://doc.rust-lang.org/stable/book/ch08-01-vectors.html)
|
|
|
|
[Rust book chapter](https://doc.rust-lang.org/stable/book/ch08-01-vectors.html)
|
|
|
|