Tim McCormack
12/08/2019, 2:28 PMkarelpeeters
12/08/2019, 2:48 PMAlso note that this feature works only for Java interop; since Kotlin has proper function types, automatic conversion of functions into implementations of Kotlin interfaces is unnecessary and therefore unsupported.
karelpeeters
12/08/2019, 2:49 PMTim McCormack
12/08/2019, 2:49 PMFunction
is from the Java stdlib.Tim McCormack
12/08/2019, 2:50 PMTim McCormack
12/08/2019, 2:50 PMTim McCormack
12/08/2019, 2:52 PMTim McCormack
12/08/2019, 2:52 PMkarelpeeters
12/08/2019, 2:52 PMFunction
interface, my bad.karelpeeters
12/08/2019, 2:53 PMf: Function<in Int, out Int>
still doesn't work.Tim McCormack
12/08/2019, 2:53 PMTim McCormack
12/08/2019, 2:56 PMkarelpeeters
12/08/2019, 2:56 PMkarelpeeters
12/08/2019, 3:01 PMComparator.thenComparing
works too, but that could just be special cased as well.Tim McCormack
12/08/2019, 3:15 PMtakesSAM
, it doesn't work. But that's still a Kotlin-compiled library, so maybe there's some trace of that in the compiled code...Tim McCormack
12/08/2019, 3:16 PMTim McCormack
12/08/2019, 3:29 PMImmutableTable.toImmutableTable(
Function<Int, Int> { it * 2 },
Function<Int, Int> { it * 2 },
Function<Int, Int> { it * 2 }
)
karelpeeters
12/08/2019, 6:29 PMkarelpeeters
12/08/2019, 6:29 PMTim McCormack
12/28/2019, 5:45 PM