Skip to content

Instantly share code, notes, and snippets.

@matthewcheok
Created July 24, 2015 11:00
Show Gist options
  • Save matthewcheok/c7aa0e64ee7000917f0a to your computer and use it in GitHub Desktop.
Save matthewcheok/c7aa0e64ee7000917f0a to your computer and use it in GitHub Desktop.
Swift parameter lists as tuples
func foo(a: Int, what b: Int, _ name: String) -> Void {
print(a)
print(b)
print(name)
}
let arguments = (4, what: 3, "hello")
foo(arguments)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment