Skip to main content
All lessons

Maps

8 min · Kotlin

Look up values by key with mapOf and mutableMapOf.

Kotlin · Maps0/5 cleared

Enemy 1 of 5

A Map stores key-value pairs. mapOf("key" to value) creates one; [key] reads a value.

You
Pincer Crab

Loading editor...

Ln 1, Col 1Spaces: 4
Sign up to fightTarget output: 10