3 ms·
You'll need to sort the result of frequencies: it's an unordered map. In practice, if you use ->> and write neater LINQ, the code is very close. Although LINQ
by moomin 13y ago
You'll need to sort the result of frequencies: it's an unordered map.
In practice, if you use ->> and write neater LINQ, the code is very close. Although LINQ only has group and sum/reduce, no dedicated frequencies function.