Hi all is it possible to get the class type of the...
# announcements
l
Hi all is it possible to get the class type of the lambda ? something like
Copy code
((String) -> String)::class
s
As written? definitely not
Depending on what you really need, the answer is maybe
but the answer is probably no, since generic types are erased at runtime
l
I see, I was looking for something similar to what we do for example to String::class but for lambda
r
It will be
Function1::class
, but I don't know how you'd get it from the lambda signature.