Swift: Passing parameters in a function call

This entry is part 37 of 41 in the series Swift

A function call with 2 string parameters:

func getName(first:String ,last:String)->String{
    return first + last

getName("Taylor", last:"Swift")

Notice that on line 5, the function call is not

getName(first:"Taylor", last:"Swift")


Series Navigation<< Swift: Initialising parameters in a struct
Swift: Declaring an array with the same value >>

Leave a comment

Leave a Reply