Skip to content

Instantly share code, notes, and snippets.

@h63542
h63542 / gist:1116605
Created July 31, 2011 08:37
Scala Learning
Practice of Programming in Sacala
// C#
List<string> keywords = ...;
var result = keywords
.GroupBy(k => k[0].ToUpper())
.ToDictionary(
g => g.Key,
g => g.OrderBy(k => k).ToList());