Answers for "foreach loop in 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
-1

scala iterator foreach

it foreach println
Posted by: Guest on December-24-2020

Browse Popular Code Answers by Language