3 ms·
Tangential, but this is why I still love Ruby's Enumerable module; it has `#select` and `#reject`, as well as the `#filter` method that people from other langua
by faitswulff 3y ago
Tangential, but this is why I still love Ruby's Enumerable module; it has `#select` and `#reject`, as well as the `#filter` method that people from other languages are used to.
- rzzzt 3y agoCan you think of any reasonably popular language where a "filter" operation drops the element if the filtering expression evaluates to true?
- faitswulff 3y agoNo, I can’t. Why do you ask? My point was that it's much nicer to have method names that do what they say instead of the programmatic version of the word "biweekly."
- rzzzt 3y agoGenuine curiosity whether an outlier exists in the "filter" === "include" area.