Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why I absolutely love java. Parent comment
You can drop the parentheses, and int is inferred by the compiler:
var filtered = new[]{ 1, 2, 3, 4 }.Where( i => i % 2 != 0 );
Alternatively:
var filtered = Enumerable.Range( 1, 4 ).Where( i => i % 2 > 0 );
There are no comments on this comment yet.
You can drop the parentheses, and int is inferred by the compiler:
var filtered = new[]{ 1, 2, 3, 4 }.Where( i => i % 2 != 0 );
Alternatively:
var filtered = Enumerable.Range( 1, 4 ).Where( i => i % 2 > 0 );