Created
September 28, 2014 13:10
-
-
Save RuiAAPeres/3c828d37a8a3507ae8ea to your computer and use it in GitHub Desktop.
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 sum(lhs : Int)(rhs : Int) -> Int { | |
| return lhs + rhs | |
| } | |
| let sum2 = sum (2) | |
| let pair1 = sum2(rhs: 1) | |
| let pair2 = sum2(rhs: 2) | |
| let pair3 = sum2(rhs: 3) | |
| let pair4 = sum2(rhs: 4) | |
| let pair5 = sum2(rhs: 5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment