posted 9 years ago
My version would be similar to yours i.e. using the standard collections in Scala, but with a for-comprehension for the second step.
The results are the same as doing it your way:
I think 1 or 2 lines of code is pretty concise for this kind of thing.
[edit: Fixed typo on "v.map(_.aid)". Doh!]
No more Blub for me, thank you, Vicar.