val lengths = for (e <- names) yield { // imagine that this required multiple lines of code e.length }