- Types
- Named Types
- Classes
- Structures
- Enumerations
- Protocols
- Compound Types
- Function Types
- Tuple Types
- Named Types
- Examples:
- Examples:
() -> Void
(is an alias of() -> ()
)(Void) -> Void
(is an alias of(()) -> ()
, different from above)(Int) -> Int
(Int) -> (Int) -> Int
(the same as(Int) -> ((Int) -> Int)
)
- Examples:
(Int, Int)
(Int, String)
(Int, Int, Int)