slice( array, i0, i1 )The semantics are like python array slicing, though both limits
have to be specified: the output array contains the sequence of
elements in the input array from i0 (inclusive)
to i1 (exclusive). If a negative value is given
in either case, it is added to the length of the input array,
so that -1 indicates the last element of the input array.
The indices are capped at 0 and the input array length respectively,
so a large positive value may be used to indicate the end of the array.
If the end index is less than or equal to the start index,
a zero-length array is returned.
Note:
This documents the double-precision version of the routine.
Corresponding routines exist for other data types
(float, long, int,
short, byte, String,
Object).
array (array of floating point)i0 (integer)i1 (integer)i0 and i1slice(array(10,11,12,13), 0, 3) = [10, 11, 12]slice(array(10,11,12,13), -2, 999) = [12, 13]double[] slice(double[], int, int)