val l = List(1,2,3,4) l.foreach {i => println(i)}