I can think of both "copy" and "crop", where the first gives a copy and the second works destructively. And a third function that removes a part of the datatype, but I can't recall any good names for that right now.
It would be logical if it worked on mappings and multisets as well, maybe using `<? (I assume that it will work on strings.)
/ Mirar
Previous text:
2003-03-06 10:36: Subject: negative indices in array ranges
For an operation that gives a new array, I think copy is a good name. Then you could call it without the range parameters to get a copy of the whole array as well.
Hm, maybe the range parameters should simply be added to copy_value?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)