Ruby and recursive arrays

by john on September 28, 2007

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>

Leave a Comment

Previous post: Axis2 1.3: Slow stub generation

Next post: Top Feeds