Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stepango/e1785579ab0b5a4389a8c726e453080f to your computer and use it in GitHub Desktop.
Save stepango/e1785579ab0b5a4389a8c726e453080f to your computer and use it in GitHub Desktop.
Kotlin partial functions
val curried: (Int) -> (Int) -> (Int) -> Int = { i1 -> { i2 -> { i3 -> i1 + i2 + i3 } } }
val partial: (Int) -> (Int) -> Int = curried(2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment