Kotlin protip: indexed access operator overloading with multiple indices
A blog by @riccardo
Operator overloading is one of Kotlin’s most beloved features. It lets you give familiar syntax to custom types, and you’re probably already using it without even noticing it. Take the Map interface, for example: the indexed access operator ([]) is used to read and write entries: val m = mutableMapOf() m[1] = "one" // m.put(1, "one") val...
#dev #softwaredevelopment #kotlin
https://jdriven.com/blog/2026/02/Kotlin-protip-indexed-access-operator-overloading/