Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Swift currying
func curried(_ f: @escaping (_: Int, _: Int) -> Int) -> (_: Int) -> (_: Int) -> Int {
return { a in { b in f(a, b) }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment