Ruckus
12/30/2018, 8:13 PMinvoke
into account:
fun main() {
val println = "fred"
println("hello")
}
operator fun String.invoke(string: String) = println("$this$string")
will print fredhello
, but if you comment out the operator function, it just prints hello
.