Ray Rahke
operator fun Int.get(
Ronny Bräunlich
operator fun Int.get(index: Int) = 0
8[0]
Klitos Kyriacou
operator fun Int.get(s: String) = s.repeat(this) println(3["Hello"]) // HelloHelloHello operator fun Double.get(exponent: Double) = pow(exponent) operator fun Double.get(exponent: Int) = pow(exponent) println(PI[2]) // 9.869604401089358
A modern programming language that makes developers happier.