#odersky-programming-in-scala-2ed #scala
Accessing an element of an array in Scala is simply a method call like any other. This principle is not restricted to arrays: any application of an object to some arguments in parentheses will be transformed to an apply() method call. Of course this will compile only if that type of object actually defines an apply method.