Wednesday 12 October 2011

Scala: Example of heirarchical sorting by distinct values

Here's a brief example of how scala can be used to sort using groupBy and mapValues:


In this context, bear in mind that sorted will return values sorted alphabetically - but you probably get the idea...

No comments: