Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created August 26, 2020 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havenwood/5cccabd473b7cb6a6e903bca217b0960 to your computer and use it in GitHub Desktop.
Save havenwood/5cccabd473b7cb6a6e903bca217b0960 to your computer and use it in GitHub Desktop.
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