Scala - Thinking of a for loop as a sequence comprehension

Scala offers a lightweight notation for expressing sequence comprehensions. Comprehensions have the form:

for (enums) yield e

where enums refers to a semicolon-separated list of enumerators. An enumerator is either a generator which introduces new variables, or it is a filter. A comprehension evaluates the body e for each binding generated by the enumerators enum and returns a sequence of these values.