After reading Can anyone explain range as array#select arguments to me, I learnt that there is Enumerable#grep.
Enumerable#grep(pattern) duplicates Enumerable#select(pattern).
I propose to deprecate grep, then remove it for the following reasons:
-
selectis more widely used,grepis only present in this very method -
selectis a more descriptive English word about the action performed thangrep - follows the least aliases principle