Actions
Misc #18352
openWhat is the Hash#grep expected?
Misc #18352:
What is the Hash#grep expected?
Status:
Open
Assignee:
-
Description
Current ruby implement, When use Array#grep, the method name means is expected.
But when use with hash, the result is really confusing ...
This result almost make Include Enumerable#grep into Hash is totally meaningless, right?
so, i consider if we should introduce a Hash#grep method instead.
Following is what is expected. (=== is matching on hash key, as Hash#slice)
Actions