Submitted by Steven Don (not verified) on Mon, 02/15/2010 - 09:19.
As commenting was inoperative due to a site issue, I wrote my comment as a blog post.
In short, it does work as designed and specified, but it may not perhaps be what you would intuitively expect (i.e. counting back 10 elements starting at the start point). Instead, it counts forward from the start point, until 10 elements before the end point (which in this case lies well before the start point, even outside the array), which explains why the empty array is returned.
It does work, but differently
As commenting was inoperative due to a site issue, I wrote my comment as a blog post.
In short, it does work as designed and specified, but it may not perhaps be what you would intuitively expect (i.e. counting back 10 elements starting at the start point). Instead, it counts forward from the start point, until 10 elements before the end point (which in this case lies well before the start point, even outside the array), which explains why the empty array is returned.