IMO can be done without extra object allocation. S...
# announcements
m
IMO can be done without extra object allocation. Something like this:
Copy code
inline fun <T> withSelf(crossinline block: (self: ()->T)->T)): ()->T = { block(block) }