has anyone found a use for extending a lambda? i w...
# announcements
t
has anyone found a use for extending a lambda? i was surprised to find that they are open classes.
Copy code
class MyLambda : () -> Unit {
  override invoke() {
    // uh...
  }
}
m
tre: lambda is a kind of expression. Naming a class with a word ‘lambda’ looks incorrect.