Last active
June 17, 2021 03:35
-
-
Save steveriggins/a424fd1e52517da68127a1802a5da06e to your computer and use it in GitHub Desktop.
This file contains 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
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