Created
June 16, 2017 12:17
-
-
Save sgr-ksmt/7a44276ba56e2d24605014a9aa720fff to your computer and use it in GitHub Desktop.
_
This file contains 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
let f: ((Int, Int)) -> Void = { | |
print($0.0, $0.1) | |
} | |
let f1: ((Int, Int)) -> Void = { arg in | |
let (x, y) = arg | |
print(x, y) | |
} | |
let f2: ((Int, Int)) -> Void = { (arg: (x: Int, y: Int)) in | |
print(arg.x, arg.y) | |
} | |
let f3: ((Int, Int)) -> Void = { arg in | |
print(arg.0, arg.1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment