Basics
- Variables
let, var
- Print
print("")
- Comments
//
- Optionals
?, !
- Closures (mini)
- Functions
func
- Cheatsheet
Control flow
- If • If let • If case let
- Guard
guard, guard let
- For-in
- While
while, repeat-while
- Switch: case • case let
Basic types
Collection types
Structs & classes
Operators
- Assign
=
+=
-=
*=
- Math
+
-
*
/
%
- Comparison
==
!=
>
- Ternary
_ ? _ : _
- Nil-coalescing
??
- Range
a...b
- Logical
!
&&
!!
- Identity
===
!==