3 ms·
> "Significantly" is a bit dramatic when we are talking about the difference between a single extra method call. It's not just a single method call; it's the e
by anton_gogolev 12y ago
> "Significantly" is a bit dramatic when we are talking about the difference between a single extra method call.
It's not just a single method call; it's the entire approach. This entire method chain is something that cannot be done in Java as cleanly as it is in C#. Grouping is a prime example. Compare
articles.stream().collect(Collectors.groupingBy(Article::getAuthor))
with
articles.GroupBy(a => a.Author)