Array Shift

Shift elements of an Array, and complete with 0.

bypass

Bypasses the module.

array in

input array to sort.

array out

Shifted array.

shift

  • N=0 : do nothing.
  • N<0 : shift elements to the left and complete by 0 at the end of the array.
  • N>0 : shift elements to the right and complete by 0 at the beginning of the array.