2 ms·
Dunno, it's fairly obvious what you're working with, being explicit doesn't buy that much (for me at any rate). val persons = names.map(Person.apply)
by virtualwhys 10y ago
Dunno, it's fairly obvious what you're working with, being explicit doesn't buy that much (for me at any rate).
val persons =
names.map(Person.apply).
filter(_.isValid)