Complex data types
Lynch’s Law says, “when the going gets tough, everyone leaves.” Anyone can complete the first day of a course, but it takes diligence to come back for day 2 – well done for sticking with it!
Today, you have eleven one-minute videos to watch, and you’ll meet things like arrays, dictionaries, and enums. As before, if you want to dive deeper into each topic, there is optional further reading, but you don’t need to read that unless you want to. Regardless, there’s a short test to help make sure you’ve understood what was taught.
- Arrays
- Optional: Why does Swift have arrays?
- Test: Arrays
- Sets
- Optional: Why are sets different from arrays in Swift?
- Test: Sets
- Tuples
- Optional: How are tuples different from arrays in Swift?
- Test: Tuples
- Arrays vs sets vs tuples
- Dictionaries
- Optional: Why does Swift have dictionaries as well as arrays?
- Test: Dictionaries
- Dictionary default values
- Creating empty collections
- Enumerations
- Optional: Why does Swift need enums?
- Test: Enumerations
- Enum associated values
- Enum raw values
- Optional: Why do Swift’s enums have raw values?
- Test: Enum raw values
- Complex types: Summary
- Test: Complex types
Need help? Tweet me @twostraws!