Skip to content

Instantly share code, notes, and snippets.

@ChandraNalaani
Created October 6, 2010 20:18
Show Gist options
  • Save ChandraNalaani/614000 to your computer and use it in GitHub Desktop.
Save ChandraNalaani/614000 to your computer and use it in GitHub Desktop.
irb --simple-prompt
>> temp = ['a','b','c']
=> ["a", "b", "c"]
>> temp[3]
=> nil
>> temp[4]
=> nil
>> temp[10,0]
=> nil
>> temp[9,0]
=> nil
>> temp[8,0]
=> nil
>> temp[7,0]
=> nil
>> temp[6,0]
=> nil
>> temp[5,0]
=> nil
>> temp[4,0]
=> nil
>> temp[3,0]
=> []
>> temp[2,0]
=> []
>> temp[1,0]
=> []
>> temp[0,0]
=> []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment