Skip to content

Instantly share code, notes, and snippets.


havenwood/question.rb Secret

Created Sep 7, 2019
What would you like to do?
<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
You can’t perform that action at this time.