Skip to content

Instantly share code, notes, and snippets.

@sgr-ksmt
Created June 16, 2017 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgr-ksmt/7a44276ba56e2d24605014a9aa720fff to your computer and use it in GitHub Desktop.
Save sgr-ksmt/7a44276ba56e2d24605014a9aa720fff to your computer and use it in GitHub Desktop.
_
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