Created
May 4, 2017 05:49
-
-
Save stepango/e1785579ab0b5a4389a8c726e453080f to your computer and use it in GitHub Desktop.
Kotlin partial functions
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
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