Hi all,

Ruby 1.8.2

Consider:

irb(main):001:0> a = []
=> []
irb(main):002:0> a[0..1]
=> []
irb(main):003:0> a[-2..-1]
=> nil

Why does the first return [] and the second return nil?

Regards,

Dan