blob: 0c3be3d5de8b246a11171058b0b1b7f4ec201260 (
plain) (
tree)
|
|
object Test {
def main(args: Array[String]): Unit = {
val array = Array("one", "two", "three")
val firstTwo: Array[String] = array.slice(0,2)
for(val x <- firstTwo)
Console.println(x)
}
}
|