C#'s 101 LINQ Samples translated to Swift Posted by mythz on Monday June 09, 2014 @05:04PM from the github.com dept. https://github.com/mythz/swift-linq-examples ( 1 comment | 3 points | on HN )
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