splice() Data Array Functions Web & Application String sa1[] = { "OH ", "NY ", "CA "}; sa1 = splice(sa1, "KY ", 1); print(sa1); // Prints "OH KY NY CA " println(); String sa2[] = { "VA ", "CO ", "IL " }; sa1 = splice(sa1, sa2, 2); print(sa1); // Prints "OH KY VA CO IL NY CA " Inserts a value or array of values into an existing array. The first two parameters must be of the same datatype. The array parameter defines the array which will be modified and the second parameter defines the data which will be inserted. splice(array, value, index) splice(array, array2, index) booleans[], bytes[], chars[], ints[], floats[], or Strings[]: base array booleans, bytes, chars, ints, floats, or Strings: value to be spliced in booleans[], bytes[], chars[], ints[], floats[], Strings[]: array to be spliced in int: position in the array from which to insert data Array (the same datatype as the input) contract() slice() 1.0 Function Core Extended