Skip to content

Commit

Permalink
Merge pull request #1513 from dralley/add-dictionary
Browse files Browse the repository at this point in the history
Add 'dictionary' as an alternate name example for HashMap
  • Loading branch information
steveklabnik authored Sep 5, 2018
2 parents 37dd0a4 + 06d6b67 commit 78f836e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 2018-edition/src/ch08-03-hash-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ The last of our common collections is the *hash map*. The type `HashMap<K, V>`
stores a mapping of keys of type `K` to values of type `V`. It does this via a
*hashing function*, which determines how it places these keys and values into
memory. Many programming languages support this kind of data structure, but
they often use a different name, such as hash, map, object, hash table, or
associative array, just to name a few.
they often use a different name, such as hash, map, object, hash table,
dictionary, or associative array, just to name a few.

Hash maps are useful when you want to look up data not by using an index, as
you can with vectors, but by using a key that can be of any type. For example,
Expand Down

0 comments on commit 78f836e

Please sign in to comment.