News for hackers. Stuff that matters.
Re:What features of Java have been dropped in Scala? by jmreardon on Tuesday August 09, 2011 @08:01AM (#2863686)
In scala you would use a for-comprehension to get the same effect:

  for (p <- persons; if p.getAge >= 18) {
    println(p);
  }

There are no comments on this comment yet.