| Parameter | Details | 
|---|---|
| for | Required keyword to use a for loop/comprehension | 
| clauses | The iteration and filters over which the for works. | 
| yield | Use this if you want to create or 'yield' a collection. Using yieldwill cause the return type of theforto be a collection instead ofUnit. | 
| body | The body of the for expression, executed on each iteration. |