Skip to content

Instantly share code, notes, and snippets.

@alvinsj
Last active August 29, 2015 14:21
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 alvinsj/7f7cbdabc3594aea21ff to your computer and use it in GitHub Desktop.
Save alvinsj/7f7cbdabc3594aea21ff to your computer and use it in GitHub Desktop.
Sneaky Swift
func add(x: Int) (_ y: Int) -> Int{
return x + y;
}
add(1)(2); // 3
for i in 0..<items.count{
// do something
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment