Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- result = []
- left_arr.each do |left_hash|
- right_arr.each do |right_hash|
- # these keys are called in somewhere else.
- result << left_hash.diff(right_hash) if left_hash[key] == right_hash[key]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement