Skip to content

Instantly share code, notes, and snippets.

@RuiAAPeres
Created September 28, 2014 13:10
Show Gist options
  • Select an option

  • Save RuiAAPeres/3c828d37a8a3507ae8ea to your computer and use it in GitHub Desktop.

Select an option

Save RuiAAPeres/3c828d37a8a3507ae8ea to your computer and use it in GitHub Desktop.
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