Why can't it be destructive? :)
Ranges are the 1..2 part. Save that if we ever implement such a type?
/ Mirar
Previous text:
2003-03-06 01:10: Subject: negative indices in array ranges
Fairly nice, but "crop" sounds destructive to me. What about "range"?
and the optimization rule crop(a,b,c) -> a[b..c] if b and c >= 0.
Seems a bit pointless since a C implementation would be practically just as fast anyway.
/ Martin Stjernholm, Roxen IS