Function types
suggest changeEvery function has its own function type, made up of the parameter types and the return type of the function itself. For example the following function:
func sum(x: Int, y: Int) -> (result: Int) { return x + y }
has a function type of:
(Int, Int) -> (Int)
Function types can thus be used as parameters types or as return types for nesting functions.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents