scala list append to end code example
Example: scala list append to end
Append to end of list
List(1,2,3) :+ 4
Results in List[Int] = List(1, 2, 3, 4)
Append to end of list
List(1,2,3) :+ 4
Results in List[Int] = List(1, 2, 3, 4)