Maps in Sass hold pairs of keys and values, and make it easy to look up a value
by its corresponding key. They’re written
(<expression>: <expression>, <expression>: <expression>)
. The
expression before the
:
is the
key, and the expression after is the value associated with that key. The keys
must be unique, but the values may be duplicated. Unlike
lists, maps
must be written with parentheses
around them. A map with no pairs is written
()
.
If you want to change selection, open document below and click on "Move attachment"
Sass: Mapshannel abs() Percentage Command Line Overview Dart Sass Ruby Sass Migrator JavaScript API Page Sections Using Maps Overview Look Up a Value Do Something for Every Pair Add to a Map Immutability <span>Maps in Sass hold pairs of keys and values, and make it easy to look up a value by its corresponding key. They’re written (<expression>: <expression>, <expression>: <expression>). The expression before the : is the key, and the expression after is the value associated with that key. The keys must be unique, but the values may be duplicated. Unlike lists, maps must be written with parentheses around them. A map with no pairs is written (). 💡 Fun fact: Astute readers may note that an empty map, (), is written the same as an empty list. That’s because it counts as both a map and a list. In fact, all maps count as lists! Eve Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details