Silly question: Is there a way to define a lambda...
# getting-started
d
Silly question: Is there a way to define a lambda signature that has more than one receiver? Example that doesn't work:
Copy code
fun doThing(block: (Receiver1, Receiver2).()->Unit) {
   with(Receiver1()) {
      with(Receiver2()) {
         block()
      }
   }
}
d
That looks like what I was thinking of. Thanks!