slice() Data Array Functions Web & Application String sa1[] = { "OH ", "NY ", "CA ", "VA ", "CO ", "IL "}; String sa2[] = slice(sa1, 1); print(sa2); // Prints "NY CA VA CO IL " println(); String sa3[] = slice(sa1, 2, 3); print(sa3); // Prints "CA VA CO " Extracts an array of elements from an existing array. The array parameter defines the array from which the elements will be copied and the offset and length parameters determine which elements to extract. If no length is given, elements will be extracted from the offset to the end of the array. When specifying the offset remember the first array element is 0. This function does not change the source array. slice(array, offset) slice(array, offset, length) booleans[], bytes[], chars[], ints[], floats[], or Strings[]: base array int: position to begin int: number of values to extract Array (the same datatype as the input) splice() 1.0 Function Core Extended