Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ 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