Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 424 Bytes

keys_and_values.md

File metadata and controls

12 lines (8 loc) · 424 Bytes

Keys and Values

A Hash Map "maps" keys to values.

In the filing cabinet analogy we are mapping names to charts full of all sorts of other information on the person.

For the rest of these examples assume we are trying to map CarsCharacters to how many times they won the Piston Cup.1

Footnotes

  1. Cars was a delightful movie. Go to your local second hand store, get a copy on DVD, and make a night of it.