Skip to Content
Pragmatic Guide to Sass 3
book

Pragmatic Guide to Sass 3

by Hampton Lintorn Catlin, Michael Lintorn Catlin
July 2016
Intermediate to advanced
130 pages
2h 11m
English
Pragmatic Bookshelf
Content preview from Pragmatic Guide to Sass 3
24Using Maps for More Detailed Collections

Maps are a concept from other programming languages with a ton of different names. If you’re familiar with programming, you may know them as hashes or dictionaries. They are similar to lists in the sense that they can consist of many items. However, a map has a pair of items. These are known as the key and value. They’re incredibly useful for keeping track of more information than just a list. They keep twice the information and can act almost like collections of variables.

Take a look at the example for this task. There’s a map for some flower-themed colors. In the example, the names of the flowers—geranium, daffodil, iris—are the keys of the map. Their associated values are the hex colors. You can ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Sass

Jump Start Sass

Hugo Giraudel, Miriam Suzanne
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
Mastering Sass

Mastering Sass

Luke Watts

Publisher Resources

ISBN: 9781680502060Errata Page