anyone knows why this returns true for all cases a...
# announcements
m
anyone knows why this returns true for all cases and what would be the appropriate way to find out lambda’s number of parameters
Copy code
>>> var myFn = { println("Hello"); }
>>> myFn is kotlin.jvm.functions.Function0<*>
true
>>> myFn is kotlin.jvm.functions.Function1<*,*>
true
>>> myFn is kotlin.jvm.functions.Function2<*,*,*>
true
>>> myFn is kotlin.jvm.functions.Function3<*,*,*,*>
true
>>> // etc