# File lib/map.rb, line 440 def shift unless empty? key = keys.first val = delete(key) [key, val] end end