Dave Leeds
09/13/2017, 2:13 AMfun welcome() = "Hello"
fun farewell() = "Good-bye"
fun getFunction(b: Boolean) = if (b) ::welcome else ::farewell
// Not very readable
println(getFunction(true)())
// A little more readable
println(getFunction(true).invoke())
// Also a little more readable - possible use case for `run()`
println(run(getFunction(true)))