From 06d6b671281de60b6f819e70ae51063826bfde8d Mon Sep 17 00:00:00 2001 From: Daniel Alley Date: Sat, 1 Sep 2018 22:00:08 -0400 Subject: [PATCH] Add 'dictionary' as an alternate name example for HashMap Python, C#, Julia, and Erlang all use Dict/Dictionary as a name for HashMap, which makes it common enough to warrant being listed explicitly. --- 2018-edition/src/ch08-03-hash-maps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2018-edition/src/ch08-03-hash-maps.md b/2018-edition/src/ch08-03-hash-maps.md index ecf147e..5cb18aa 100644 --- a/2018-edition/src/ch08-03-hash-maps.md +++ b/2018-edition/src/ch08-03-hash-maps.md @@ -4,8 +4,8 @@ The last of our common collections is the *hash map*. The type `HashMap` 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,