for (n <- names) println(n) for (n <- names) println(n.capitalize) for (n <- names) { // imagine this requires several lines println(n.capitalize) }