kotlin crossinline
fun doSomething() {
print("doSomething start")
doSomethingElse {
print("doSomethingElse")
return // notice this return
}
print("doSomething end")
}
inline fun doSomethingElse(abc: () -> Unit) {
// I can take function
// do something else here
// execute the function
abc()
}