RosettaCodeData/Task/Arrays/Scala/arrays-2.scala
Ingy döt Net 80737d5a6a new tasks
2013-04-09 00:46:50 -07:00

3 lines
138 B
Scala

val a = new collection.mutable.ArrayBuffer[Int]
a += 5 // Append value 5 to the end of the list
a(0) = 6 // Assign value 6 to element 0