Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on C#'s 101 LINQ Samples translated to Swift.
e.g. instead of var result = from p in numbers where p < 5 select p;
you could write: var result = numbers.Where(p => p < 5);
the 'from ...' and 'select ..' adds a lot of boilerplate
There are no comments on this comment yet.
e.g. instead of var result = from p in numbers where p < 5 select p;
you could write: var result = numbers.Where(p => p < 5);
the 'from ...' and 'select ..' adds a lot of boilerplate