For Loops

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

scala> for (n <- nums) println(n)
1
2
3
For Loops → are a → Control Structures.

For Loops — Structure map

Clickable & Draggable!

For Loops — Related pages: