Answers for "foreach() scala"

1

foreach loop in scala

scala> val x = List(1,2,3)
x: List[Int] = List(1, 2, 3)

scala> x.foreach { println }
1
2
3
Posted by: Guest on April-14-2021

Code answers related to "Scala"

Browse Popular Code Answers by Language