0
Right now I have the following code:
val arr = List(1,2,3,4,5,6,7,8,9,10)
(1 to 10).foreach(size=> println(arr.take(size)))
which outputs
List(1)
List(1, 2)
List(1, 2, 3)
List(1, 2, 3, 4)
List(1, 2, 3, 4, 5)
List(1, 2, 3, 4, 5, 6)
List(1, 2, 3, 4, 5, 6, 7)
List(1, 2, 3, 4, 5, 6, 7, 8)
List(1,...