From: Ernest Ellingson Date: 2001-02-18T12:02:07+09:00 Subject: [ruby-talk:11025] Re: inconsistency At 03:27 2/18/2001 +0900, you wrote: >a = "FooBar" >b = a.split(//) >b[6,2] #=> [] >a[6,2] #=> nil > >anyone knows why this last one returns nil instead of "" (empty string) ? > > > >matju a[6] doesn't exist thus a[6,2] doesn't exist, thus Ruby says "Ain't no such thing"