$typeMap
$typeMap
stableSort(array $data, callable $sortFn) : array
JMESPath requires a stable sorting algorithm, so here we'll implement a simple Schwartzian transform that uses array index positions as tie breakers.
array | $data | List or map of data to sort |
callable | $sortFn | Callable used to sort values |
Returns the sorted array
slice(array|string $value, int|null $start = null, int|null $stop = null, int $step = 1) : array|string
Creates a Python-style slice of a string or array.
array|string | $value | Value to slice |
int|null | $start | Starting position |
int|null | $stop | Stop position |
int | $step | Step (1, 2, -1, -2, etc.) |