EFUN: slice_array

SYNTAX:
mixed *slice_array( arr, from, to );
  mixed *arr;
  int from;
  int to;

DESCRIPTION:
Slice_array returns a range of elements from array 'arr', starting at
index 'from', up to index 'to'. Note that this efun is the same
as arr[from..to].

RETURN VALUES:
If 'arr' is not an array or either index lies out of the range the
array covers, then 0 will be returned. Otherwise it returns an array
that consists of the specified range of elements from 'arr'. Note that
arrays start counting at index 0.

SEE ALSO:
member_array
extract

EXAMPLE:
string *str, *substr;

str = ({ "For", "he", "is", "a", "jolly", "good", "fellow" });
substr = slice_array( str, 1, 4 );
// substr is now ({ "he", "is", "a", "jolly" }), and can be changed
// without changing the contents of str.
