Last active
August 29, 2015 14:21
-
-
Save alvinsj/7f7cbdabc3594aea21ff to your computer and use it in GitHub Desktop.
Sneaky Swift
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 add(x: Int) (_ y: Int) -> Int{ | |
return x + y; | |
} | |
add(1)(2); // 3 |
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
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