You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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) { ... }