Skip to content

Instantly share code, notes, and snippets.

@NateBarnes
Created September 8, 2012 04:33
Show Gist options
  • Save NateBarnes/3671801 to your computer and use it in GitHub Desktop.
Save NateBarnes/3671801 to your computer and use it in GitHub Desktop.
Recursive Arrays
foo = []
foo << foo
foo == foo.first #=> true
foo #=> [[...]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment