Skip to content

Glossary: Kotlin Basics

map

Also written: maps, mapOf, mutableMapOf

A collection that links each key to a value, such as menu codes to prices. `"lat" to 4.75` makes one entry, a pair, and looking up a missing key gives null.

Where the book teaches it

Related terms

key / valuepaircollection