Ruby and recursive arrays

28
Sep/07
0

Doubtless this would offend some, but the fact that Ruby is sensitive to a recursive array brightens my day:

irb(main):001:0> x = []
=> []
irb(main):002:0> x << x
=> [[...]]
irb(main):003:0>
Filed under: Uncategorized
Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.