slice(Array<T>, Number, Number): Array<T>
Selects the interval of elements that satisfy the condition:
from <= indexOf(array) < until
Introduced in DataWeave 2.2.0. Supported by Mule 4.2 and later.
Parameters
| Name | Description |
|---|---|
|
The array of elements. |
|
The starting index of the interval of elements to include from the array. |
|
The ending index of the interval of elements to include from the array. |