The problem with a function or a set of functions is to dream up a good syntax the allows for ranges with either side open as well as both sides closed, and to handle that efficient. But OTOH we can let the tree optimizer reduce it all to a[b..c] expressions.
/ Martin Nilsson (har bott i google)
Previous text:
2003-03-05 23:19: Subject: negative indices in array ranges
I think a function would be better than a special syntax, if we can find a good name for it. Shouldn't be hard to find one since almost every language got one or more functions for that purpose. E.g. "substr" in Perl, "mid" in BASIC. More?
/ Martin Stjernholm, Roxen IS