All pastes #36711 Raw Edit

Mine

public text v1 · immutable
#36711 ·published 2006-01-13 18:40 UTC
rendered paste body
    updates = []
    #updates,inserts = items.partition { |e| @items.each { |x| x['key'] == e['key'] } }
    items.each do |x|
      @items.each do |y|
        if y['key'] == x['key']
          updates << x
          items.delete x
        end
      end
    end
    inserts = items