func greet(_ person : String, abc day: String) -> String {
return "Hello \(person), today is \(day)."
}
print (greet("John", abc: "Wednesday")) // Prints Hello John, today is Wednesday.
func greet(_ person : String, day: String) -> String {
return "Hello \(person), today is \(day)."
}
print (greet("John", day: "Wednesday")) // Prints Hello John, today is Wednesday.
Both of these have the same output. How does the first one work ?
Any link I can refer to understand this would be very helpful.
Thank You.