Ruby and recursive arrays by jgn on Friday, September 28, 2007 in Uncategorized

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>
comments powered by Disqus