Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
C#'s 101 LINQ Samples translated to Swift (github.com/mythz)
3 points by mythz on June 9, 2014 | hide | past | favorite | 1 comment


It's been a while since i have written c# but wouldn't a closer/fairer comparison have been to use the fluent methods?

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




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: