The example above shows that the original values of someInt and anotherInt are modified by
the swapTwoInts function, even though they were originally defined outside of the function.
N O T E
In-out parameters are not the same as returning a value from a function. The swapTwoInts example above
does not define a return type or return a value, but it still modifies the values of someInt and anotherInt. Inout
parameters are an alternative way for a function to have an effect outside of the scope of its function
body.
Function Types
Every function has a specific function type, made up of the parameter types and the
return type of the function.
For example: