Scala foreach