Does the Kotlin compiler always generate a class f...
# announcements
e
Does the Kotlin compiler always generate a class for each function expression? For example, if I defined:
Copy code
val sumVal = { a: Int, b: Int -> a + b}
why does it not generate a simple static method like the definition
fun sumFun(a: Int, b: Int) = a + b
would?