fun main(args: Array) { apply("foo") { println(this) } } fun apply(str: String, block: String.() -> Unit) { str.block() }