I tried to create an array in scala.
In scala repl when i put dot and press tab i could see only few function available.
scala> val d = Array(1,2,3,4,5)
d: Array[Int] = Array(1, 2, 3, 4, 5)
scala> d.
apply asInstanceOf clone isInstanceOf length toString update
But i was able to run sum, head ,tail etc on Array although scala repl didn't show them.
I couldn't understand why functions such as head, tail etc were not shown by scala repl.
Arrayso they are not immediately shown, if you keep pressing tab the * REPL** searches for more methods. - I any case, it should not affect you that they are not shown, you can still call them. Also, this may be another (good) reason for preferring aListor any other real collection over anArray