Is there any good way to extract a lambda to a fun...
# announcements
s
Is there any good way to extract a lambda to a function ? ie.
run { ... }
to
fun <name>(param1, ...) { ... }
The extract function gives me
fun <name>(param1, ...) = { ... }
which also happens to break any
return@run
Problem being that it only takes me halfway there and then I have to manually change both callsites and the function signature itself
r
run
returns something so no surprise with the signature, but
return@run
should be changed to
return
automatically I guess