fun main(args : Array) { foo { println(it) } } fun foo(f: (Int) -> Unit) { f(42) }