Functions in Swift are started with the keyword func so a basic Swift function signature would look like
a function signature that would have a return statement would look like this
Swift functions can have two different labels for a value one internal label and one external label the internal label would be used inside the function for referring to the value the external label would be used when calling the function.
The first word before the space will be the external name and then the second word after the space but before the colon(:) would be the internal name.
You can also use an underscore(_) to denote no name has the external name as shown below
Beware if you use the underscore(_) you CANNOT have a name when calling the function it will not work
Swift Functions can have default values so you don’t have to supply values but you still could
Then you can call it like any of these