A Scala `for` loop as a method body