Skip to content

Instantly share code, notes, and snippets.

@rsmoz
Created May 25, 2015 05:30
Show Gist options
  • Save rsmoz/254583957b395cebc6a2 to your computer and use it in GitHub Desktop.
Save rsmoz/254583957b395cebc6a2 to your computer and use it in GitHub Desktop.
Yea, partial application error, yo
struct Something {
func xyz() {
let F = doSomething(3)(3)
let G = doSomething(4)
let result = G(3)
}
func doSomething(y: Int)(_ x: Int) -> Int {
return 1
}
}
Something().xyz()
print("runs")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment