scala concatenate list

232

scala concatenate list -

scala> val c = a ::: b
c: List[Int] = List(1, 2, 3, 4, 5, 6)

scala concatenate list -

scala> val c = a ++ b
c: List[Int] = List(1, 2, 3, 4, 5, 6)

Comments

Submit
0 Comments