slice

fun slice(start: Int = definedExternally, end: Int = definedExternally): R(source)

Returns a section of an array.

Parameters

start

The beginning of the specified portion of the array.

end

The end of the specified portion of the array. This is exclusive of the element at the index 'end'.