Y
Hacker News
new
|
ask
|
show
|
jobs
by
jmreardon
5421 days ago
In scala you would use a for-comprehension to get the same effect:
for (p <- persons; if p.getAge >= 18) { println(p); }