Skip to content

Instantly share code, notes, and snippets.

@steveriggins
Last active June 17, 2021 03:35
Show Gist options
  • Save steveriggins/a424fd1e52517da68127a1802a5da06e to your computer and use it in GitHub Desktop.
Save steveriggins/a424fd1e52517da68127a1802a5da06e to your computer and use it in GitHub Desktop.
class Curried {
let x: Int
init(x: Int) {
self.x = x
}
func yummy() -> String {
"Curry is \(x)"
}
}
let curry = Curried(x: 42)
let yummy = Curried.yummy
let yummyCurry = yummy(curry)
print(yummyCurry())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment