Given function foo :
fun foo(m: String, bar: (m: String) -> Unit) { bar(m) }
We can do:
foo(\"a message\", { println
First-class functions are currently not supported in Kotlin. There's been debate about whether this would be a good feature to add. I personally think they should.