Skip to content

Instantly share code, notes, and snippets.

@sodastsai
Created October 2, 2016 06:05
Show Gist options
  • Save sodastsai/c92d004f21ddc5d7186f6bb2e6498990 to your computer and use it in GitHub Desktop.
Save sodastsai/c92d004f21ddc5d7186f6bb2e6498990 to your computer and use it in GitHub Desktop.
Parameter Names and Argument Labels in functions of Swift
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