summaryrefslogtreecommitdiff
path: root/test/files/run/breakout.scala
blob: 8081405bd19b43eee1da39823684651833909740 (plain) (blame)
1
2
3
4
5
6
7
8
9
import scala.collection.generic._
import scala.collection._
import scala.collection.mutable._

object Test extends App {
	val l = List(1, 2, 3)
	val a: Array[Int] =  l.map(_ + 1)(breakOut)
	println(a.mkString(", "))
}