Skip to content

Instantly share code, notes, and snippets.

@jasonblanchard
Created May 17, 2013 18:44
Show Gist options
  • Save jasonblanchard/5601099 to your computer and use it in GitHub Desktop.
Save jasonblanchard/5601099 to your computer and use it in GitHub Desktop.
a = ['one','two','three']
b = [1,2,3]
Hash[a.zip(b)] # => {"one"=>1, "two"=>2, "three"=>3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment