Skip to content

Instantly share code, notes, and snippets.

@peterkeen
Created September 6, 2011 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkeen/1198431 to your computer and use it in GitHub Desktop.
Save peterkeen/1198431 to your computer and use it in GitHub Desktop.
$ irb
irb
>> a = 1
a = 1
=> 1
>> a[0]
a[0]
=> 1
>> a[1]
a[1]
=> 0
>> a[2]
a[2]
=> 0
>> a = 111111
a = 111111
=> 111111
>> a[1]
a[1]
=> 1
>> a[2]
a[2]
=> 1
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment