There isn't really partial application in Kotlin, ...
# announcements
r
There isn't really partial application in Kotlin, you just wrap it with another function.
Copy code
val add: (Int, Int) -> Int = { a, b -> a + b }
val add5: (Int) -> Int = { add(it, 5) }
assert(add5(10) == 15)
r
that's what I am doing now, just a bit cumbersome if you have 4 to 5 parameters
I hoped there is a special syntax I am not aware of