Yes, it breaks code. Perhaps [x:y] could be used, where x and y may be negative to count from the end of the array. Three last characters in a: a[-3:]
/ Martin Nilsson (har bott i google)
Previous text:
2003-03-05 22:53: Subject: negative indices in array ranges
hi,
instead of having to do:
reverse(reverse(foo/"/")[1..]);
i'd very much prefer:
(foo/"/")[..-2];
are there any reasons that speak against supporting this other than me not being able to offer a patch?
greetings, martin.
/ Brevbäraren