Created
July 24, 2015 11:00
-
-
Save matthewcheok/c7aa0e64ee7000917f0a to your computer and use it in GitHub Desktop.
Swift parameter lists as tuples
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 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