Indexer property in kotlin


#1

Is there an equivalent to C# "Indexer" proprty? example: http://msdn.microsoft.com/en-us/library/6x16t2tx.aspx


#2

In Kotlin square brackets([]) are translated to calls to get and set with appropriate numbers of arguments, e.g.  a[b, c] -> a.get(b, c), a[b, c] = d -> a.set(b, c, d). For more information please see http://kotlinlang.org/docs/reference/operator-overloading.html