Skip to content

Instantly share code, notes, and snippets.

@mtrudel
Created October 8, 2010 17:53
Show Gist options
  • Select an option

  • Save mtrudel/617208 to your computer and use it in GitHub Desktop.

Select an option

Save mtrudel/617208 to your computer and use it in GitHub Desktop.
I have a nested set of hashes like:
[A]
[B]
[C]
[D]
[E]
[F]
[A']
[B']
[C']
[D']
[E']
[F']
[A'']
[B'']
[C'']
[D'']
[E'']
[F'']
I want to get an array like:
[A,A',A'']
[B,B',B'']
[C,C',C'']
[D,D',D'']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment