Skip to main content
All lessons

Dictionaries

8 min · Swift

Store values under named keys instead of numbered positions.

Swift · Dictionaries0/5 cleared

Enemy 1 of 5

A Dictionary holds key-value pairs: [key: value]. Look up a value with dict[key].

You
Goblin Glitch

Loading editor...

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