4 ms·
Actually, the functional alternative in scala is this: persons.filter(_.age >= 18).foreach(p => { (code here) }); That is way, way more readable, imho.
by mark242 15y ago
Actually, the functional alternative in scala is this:
persons.filter(_.age >= 18).foreach(p => { (code here) });
That is way, way more readable, imho.