this would be ambiguous in Kotlin though. Eg: ```...
# language-proposals
k
this would be ambiguous in Kotlin though. Eg:
Copy code
val myInt = 3
foo()[myInt] { ... }
if
foo()
is a function that returns, say, a
Map
, you don't know if the square-brackets are for the
get
operator or for the function body