- Day 1
- Oh yeah you can use
_
as a number separator in Int's - Some easy getting started stuff about
var
vs.let
Double
Int
Bool
String
and multi line string declarations - You can use mulit line string even when you dont want mulit line output by escaping the newlines.
- Oh yeah you can use
- Day 2
- Tuples are fixed in size and fixed in type once you create them
let tup = ("one", 1)
will always be of type(String, Int)
you can not change the type of either of the items or add more to the beginning or end. - Syntax for adding a default when doing a dictionary lookup
let value = mydict["key", default: 3]
wonder why this syntax exists? How is it different fromlet value = mydict["missing_key"] ?? 3
- Tuples are fixed in size and fixed in type once you create them
Last active
September 24, 2019 20:15
-
-
Save regnerjr/8ef867f74dd27fc5e707e35d0569b61e to your computer and use it in GitHub Desktop.
100 Days of Swift UI Notes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment