Function literals and the JNI

Alright. And I suppose the “1” in Function1 refers to the number of arguments?

From what I see, “kotlin.jvm.functions.Function1” is a Kotlin-internal type, and it is not advisable to rely on its existence or structure in JNI code, right?

2 Likes