Skip to content

Instantly share code, notes, and snippets.

@slavapestov
Created December 17, 2015 00:53
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 slavapestov/3efd0213fe8f17187b8f to your computer and use it in GitHub Desktop.
Save slavapestov/3efd0213fe8f17187b8f to your computer and use it in GitHub Desktop.
Array of functions
func foo() {
// Doesn't parse correctly
// let a = [() -> ()]()
let b = [(Int, Int)]()
let a: [() -> ()] = []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment