Basics Variables let, var Print print("") Comments // Optionals ?, ! Closures (mini) Functions func Control flow If • If let • If case let Guard guard, guard let For-in While while, repeat-while Switch: case • case let Basic types Numbers Int, Float Booleans Bool Tuples (a, b, c) Strings Enums Collection types Comparison Arrays [1, 2, 3] Sets Set<Int> Dictionaries [:] Structs & classes Structs & classes Properties Methods Inheritance Operators Assign =, +=. -=, *=, /= Math +, -, *, /, % Comparison ==, > Ternary _ ? _ : _ Nil-coalescing ?? Range a...b Logical !, &&, !! Identity ===, !== Functional Comparison map compactMap flatMap filter reduce sorted forEach Advanced Errors Dispatch Meta Swift versions