Advertisement
Guest User

Untitled

a guest
Aug 15th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.21 KB | None | 0 0
  1. result = []
  2. left_arr.each do |left_hash|
  3.   right_arr.each do |right_hash|
  4.     # these keys are called in somewhere else.
  5.     result << left_hash.diff(right_hash) if left_hash[key] == right_hash[key]
  6.   end
  7. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement