# File lib/multimap.rb, line 465 def select inject(self.class.new) { |map, (key, value)| map[key] = value if yield([key, value]) map } end