mutate and rotate the major-axis of a 2D array by the specified amount to the right.
given a row-major 2D array arr2d, this function would rotate its rows by the specified amount.
a positive amount would rotate the rows to the right, and a negative amount would rotate it to the left.
mutate and rotate the major-axis of a 2D array by the specified amount to the right.
given a row-major 2D array
arr2d
, this function would rotate its rows by the specifiedamount
. a positiveamount
would rotate the rows to the right, and a negativeamount
would rotate it to the left.Example