From: Cliff Urr Date: 2001-10-26T07:33:33+09:00 Subject: [ruby-talk:23367] Paired Arrays I am a rank newbie - trying to learn Ruby (my 1rst language). The Ruby book says in this example about arrays: "You can also index arrays with a pair of numbers, [start, count]. This returns a new array consisting of references to count objects starting at position start. a = [ 1, 3, 5, 7, 9 ] a[1, 3] > [3, 5, 7] a[3, 1] > [7] a[-3, 2] > [5, 7]" I don't get why the last line above results in [5,7] Isn't this an error, becuase shouldn't it be: a[-3,2] > [5,7,9] If you count the negative number from the last one, which gets you to where "5" is, then count up to 2 places after that, should it not include not only 7 but 9 also? - Cliff