blob: f923a3cd2a3ae88eab8b1da8fd09202fcd2766c8 (
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 (x <- firstTwo)
Console.println(x)
}
}
|