rotate

HC Data Structure Primitives Rearrangers rotate
reverse shuffle

rotate array places


outputs a new array that is rotated against the array by places places.

Examples:

show rotate {h a l l o} 1		;{o h a l l}
show rotate {h a l l o} -1		;{a l l o h}
show rotate {1 2 3} 2		;{2 3 1}

Examples:

References:

reverse shuffle