no yield keyword - uses the special for comprehension returning Unit
:
object ComprehensionTest3 extends App {
for (i <- Iterator.range(0, 20);
j <- Iterator.range(i, 20) if i + j == 32)
println("(" + i + ", " + j + ")")
}
status | not read | reprioritisations | ||
---|---|---|---|---|
last reprioritisation on | suggested re-reading day | |||
started reading on | finished reading on |