b3842285e8
Converts +a, --a, a * b, a..b, a %= b, a in b, etc. to their function call counterparts.
8 lines
189 B
Kotlin
8 lines
189 B
Kotlin
class Mocha() {
|
|
fun invoke(x: Int, y: String, f: (Int) -> String) {
|
|
}
|
|
}
|
|
fun main() {
|
|
val mocha = Mocha()
|
|
val testing = mocha<caret>(1, "fire"){ (x: Int) -> "hello world" }
|
|
} |