Open
Description
The section jumps right into advanced examples (multiple generators and filters) without explaining the for
syntax, generators or filters. It would be nice to start off with a few easier examples:
- Simple Java-style
for
loop:
for (i <- 1 to 15) { ... }
- Simple Java-style '
foreach
" loop:
for (element: Int <- someIntArray) { ... }
- A loop with a single generator and filter:
for (element: Int <- someIntArray if element % 2 == 0) { ... }
Metadata
Metadata
Assignees
Labels
No labels