100 Days of Swift
2026-04-20
Since yesterday I did Days 1, 2, and 3 by accident, I’m going ahead and redoing Day 3 today.
Constants and variables, simple data types — I’m good with those. I got 100% on the quizzes 🤓
Now, however, it’s getting a little more complicated.
- Array — I like that you can define them with
[data type]because that reinforces for me how you know you have an array - Dictionary — an array (you can tell because of
[ ]) ofkey:valuepairs. - Set — an array with some special functionality (fast search, primarily)
- Enum — arbitrary fixed list that only knows what it’s been told
Is someone going to come along and say that I’m thinking about it all wrong?
Quizzes:
- Dictionaries — 5/6 — my first missed question! I didn’t see the
()instead of the[] - Dictionary default values — 8/12 — syntax syntax syntax
- Sets — 12/12 — reading carefully is essential
- Enums — 5/6 — some things are better as an array