From: ito@... Date: 2002-10-24T12:02:18+09:00 Subject: array[start..end] gives unexpected results Is this correct? $ cat a1.rb def foo(a) l = a.size a.each_index {|i| p i p a[(i+i) .. (l-1)] p a[i+1, l-i] } end foo([0,1,2,3,4]) $ ruby -v ruby 1.6.8 (2002-10-23) [i686-linux] $ ruby a1.rb 0 [0, 1, 2, 3, 4] <-- UNEXPECTED [1, 2, 3, 4] 1 [2, 3, 4] <-- OK [2, 3, 4] 2 [4] <-- UNEXPECTED [3, 4] 3 nil <-- UNEXPECTED [4] 4 nil <-- OK [] -- ******************** Ito Kazumitsu