The type of this function is () -> (), or “a function that has no parameters, and returns Void.”
Functions that don’t specify a return value always return Void, which is equivalent to an
empty tuple in Swift, shown as ().
Using Function Types
You use function types just like any other types in Swift. For example, you can define a
constant or variable to be of a function type and assign an appropriate function to that
variable: