Puts recursive array

x = [0,1,2,3,4,5]; x << x e$B$H$7$F:n$C$?:F5"E*$JG[Ns$re(B puts e$B$9e(B
e$B$k$He(B […] e$B$,$$$/$D$b=P$F$-$^$9!#e(B

% ./ruby -ve ‘x = [0,1,2,3,4,5]; x << x; puts x’
ruby 1.9.0 (2008-05-02 revision 16276) [i686-linux]
0
1
2
3
4
5
[…]
[…]
[…]
[…]
[…]
[…]
[…]

1.8 [email protected]$H=P$F$-$^$;$s!#e(B

% ruby-1.8 -ve ‘x = [0,1,2,3,4,5]; x << x; puts x’
ruby 1.8.7 (2008-05-02 patchlevel 5000) [i686-linux]
0
1
2
3
4
5
[…]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs