aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t594.scala
blob: f923a3cd2a3ae88eab8b1da8fd09202fcd2766c8 (plain) (tree)
1
2
3
4
5
6
7
8







                                                  
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)
  }
}