Ruby and recursive arrays
28
Sep/070
Sep/070
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 (0)
Trackbacks (0) ( subscribe to comments on this post )
No comments yet.
Leave a comment
No trackbacks yet.
