https://kotlinlang.org logo
#arrow
Title
# arrow
d

Derek Berner

05/20/2019, 4:26 PM
Ah, because the latter is actually this:
Copy code
fun <A, B, C> tupled(f: (A, B) -> C): (Tuple2<A, B>) -> C = { a, b -> f(a, b) }
fun <A, B, C> ((A, B) -> C).tupled2(): (Tuple2<A, B>) -> C = { a, b -> this(a, b) }