This page explains how to use the array_rotate_left function in APL.
array_rotate_left
function in Axiom Processing Language (APL) rotates the elements of an array to the left by a specified number of positions. It’s useful when you want to reorder elements in a fixed-length array, shifting elements to the left while moving the leftmost elements to the end. For instance, this function can help analyze sequences where relative order matters but the starting position doesn’t, such as rotating network logs, error codes, or numeric arrays in data for pattern identification.
Splunk SPL users
array_rotate_left
allows for direct rotation within the array. Splunk SPL does not have a direct equivalent, so you may need to combine multiple SPL functions to achieve a similar rotation effect.ANSI SQL users
array
: The array to be rotated. Use a dynamic data type.positions
: An integer specifying the number of positions to rotate the array to the left.