Created
October 2, 2016 06:05
-
-
Save sodastsai/c92d004f21ddc5d7186f6bb2e6498990 to your computer and use it in GitHub Desktop.
Parameter Names and Argument Labels in functions of Swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func move(from origin: String, to destination: String) -> String { | |
return "Move from \(origin) to \(destination)." | |
} | |
let string = move(from: "Tokyo", to: "Taipei") | |
print(string) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment