Skip to content

Instantly share code, notes, and snippets.

@spuder
Created March 31, 2014 05:04
Show Gist options
  • Select an option

  • Save spuder/9885656 to your computer and use it in GitHub Desktop.

Select an option

Save spuder/9885656 to your computer and use it in GitHub Desktop.
ruby recursion
# Array returned by this question http://stackoverflow.com/questions/22752407/why-cant-i-append-to-the-end-of-an-array-recursively-in-ruby
2
3
2
4
2
3
5
2
3
2
4
6
2
3
2
4
2
3
5
7
2
3
2
4
2
3
5
2
3
2
4
6
8
2
3
2
4
2
3
5
2
3
2
4
6
2
3
2
4
2
3
5
7
9
2
3
2
4
2
3
5
2
3
2
4
6
2
3
2
4
2
3
5
7
2
3
2
4
2
3
5
2
3
2
4
6
8
10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment