Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Java 8 lambda syntax decided - same as C# and Scala. Parent comment
companies .Where(c => c.Name.StartsWith("A")) .GroupBy(c => c.Sector, c => c.ProfitAndLoss) .Select(g => new {Sector = g.Key, Profitability = g.Sum()}
Closures are massively more compact than running around with inner classes for everything.
There are no comments on this comment yet.
companies .Where(c => c.Name.StartsWith("A")) .GroupBy(c => c.Sector, c => c.ProfitAndLoss) .Select(g => new {Sector = g.Key, Profitability = g.Sum()}
Closures are massively more compact than running around with inner classes for everything.