Skip to content

Instantly share code, notes, and snippets.

@hosiawak
Created August 14, 2009 10:15
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 hosiawak/167751 to your computer and use it in GitHub Desktop.
Save hosiawak/167751 to your computer and use it in GitHub Desktop.
<hosiawak> mam 2 hashe: [11:10]
<hosiawak> {"N/A"=>8, "France"=>8, "United Kingdom"=>19, "Germany"=>7,
"Poland"=>8}>
<hosiawak> {"N/A"=>1}> [11:11]
<hosiawak> jak zmergować te hashe dodając do siebie wartości kluczy ?
<hosiawak> czyli chcę uzyskać {"N/A"=>9, "France"=>8, "United Kingdom"=>19,
"Germany"=>7, "Poland"=>8}> [11:12]
<hosiawak> ? (btw. szkoda ze Hash#merge nie bierze bloku, przydalby sie tutaj)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment