Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [{:name=>"John Doe1", :number=>"5551234567"},
- {:name=>"John Doe1", :number=>"5551234567"},
- {:name=>"John Doe2", :number=>"5557654321"},
- {:name=>"John Doe1", :number=>"5551234567"}]
- [{:name=>"John Doe2", :number=>"5557654321"}]
- a.group_by{|e| e}.select{ |k, v| k[:name].size >=3}.reject
Add Comment
Please, Sign In to add comment