我试图从Java调用以下Kotlin函数
override fun First(list: LinqList<ElementType>, condition: (ElementType) -> Boolean) : ElementType
like this
int first = list.First(list,(x) -> x == 5);
but i get the following error
Error java: cannot access kotlin.jvm.functions.Function1
class file for kotlin.jvm.functions.Function1 not found
I have tried googling it but i can not find the answer anywhere
Thanks in advance