Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created September 7, 2019 00:08
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/c8f560eb7b910fbdcd10ed7a34014069 to your computer and use it in GitHub Desktop.
Save havenwood/c8f560eb7b910fbdcd10ed7a34014069 to your computer and use it in GitHub Desktop.
<Intelo> on #ruby IRC example question
# I have:
[[1, 1], [["a", "a"], ["b", "b"]], [2, 2], [["c", "c"], ["d", "d"]], [3, 3]]
# And I want:
{1=>1, "a"=>"a", "b"=>"b", 2=>2, "c"=>"c", "d"=>"d", 3=>3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment