26 ms·
As I mentioned above, the best way to keep items matching a condition is filter predicate xs
by sid0 15y ago
As I mentioned above, the best way to keep items matching a condition is
filter predicate xs
- IvoDankolov 15y agoIn case you don't speak Haskell: IEnumerable<T>.Where(Func<T, bool> predicate) It's quite simple to use: var odd_numbers = numbers.Where( n => n%2 == 1 );