Didn't try it but this should work ``` fun <A&g...
# arrow
r
Didn't try it but this should work
Copy code
fun <A> (() -> Unit).asListener(): (A) -> Unit = 
  { a: A -> this() }