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 yield will cause the return type of the for to be a collection instead of Unit . |
body | The body of the for expression, executed on each iteration. |