Created
August 27, 2011 19:46
-
-
Save baxter/1175787 to your computer and use it in GitHub Desktop.
It's turtles all the way down.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> var turtle = {}; | |
> turtle; | |
{} | |
> turtle.turtle = turtle; | |
{ turtle: [Circular] } | |
> turtle.turtle.turtle; | |
{ turtle: [Circular] } | |
> turtle.turtle.turtle.turtle; | |
{ turtle: [Circular] } | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.8.7-p302 :001 > turtle = {} | |
=> {} | |
ruby-1.8.7-p302 :002 > turtle['turtle'] = turtle | |
=> {"turtle"=>{...}} | |
ruby-1.8.7-p302 :003 > turtle['turtle']['turtle'] | |
=> {"turtle"=>{...}} | |
ruby-1.8.7-p302 :004 > turtle['turtle']['turtle']['turtle'] | |
=> {"turtle"=>{...}} | |
ruby-1.8.7-p302 :005 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment