Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Clarifying a Question on #ruby IRC
h1 = { a: true, b: { c: [1, 2, 3], d: [42] } }
h2 = { a: false, b: { x: [3, 4, 5], d: [42] } }
h1.deep_intersection(h2)
#=> ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.