Hacking With Swift Day 3 is complete!

Day 3 was A LOT. PHEW 😅. So we covered complex date types. For example how and when to use dictionaries, that dictionaries can be a string: string relationship, or a string: Int relationship, even a String: Boolean. Also SETS! I kind of dig sets. Sets are like arrays BUT they can only contain 1 of each item, yes you can have the same item in a set but when you’re asking Swift to relay the information in the Set array it will drop the repeated items.

And enums. Basically an enum is a repository for a set of items you’ll be referring back to. An example of an emum is like this

Until tomorrow!

Take care and make sure to make yourself better than yesterday ,

MJ

Leave a Reply

Discover more from Putting up or shutting up

Subscribe now to keep reading and get access to the full archive.

Continue reading