rustlings/exercises/collections
x-hgg-x 179a75a68d
fix: Include exercises folder in the project structure behind a feature (#917)
closes #859
closes #913
closes #942
2022-03-29 11:44:06 +02:00
..
README.md docs: Update collections README with HashMap link 2021-07-06 01:31:27 -07:00
hashmap1.rs doc: Update collections exercises instruction to match the standard naming 2021-03-18 19:11:15 +01:00
hashmap2.rs fix(hashmap2): Update incorrect assertion (#660) 2021-04-20 11:15:49 +02:00
mod.rs fix: Include exercises folder in the project structure behind a feature (#917) 2022-03-29 11:44:06 +02:00
vec1.rs doc: Update collections exercises instruction to match the standard naming 2021-03-18 19:11:15 +01:00
vec2.rs doc: Update collections exercises instruction to match the standard naming 2021-03-18 19:11:15 +01:00

README.md

Collections

Rusts standard library includes a number of very useful data structures called collections. Most other data types represent one specific value, but collections can contain multiple values. Unlike the built-in array and tuple types, the data these collections point to is stored on the heap, which means the amount of data does not need to be known at compile time and can grow or shrink as the program runs.

This exercise will get you familiar with two fundamental data structures that are used very often in Rust programs:

  • A vector allows you to store a variable number of values next to each other.
  • 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.

Further information