Rotates this list in place by distance positions.
The element at index i ends at index (i + distance).mod(size). Any distance is accepted; it is normalized modulo the list size. Lists with fewer than two elements are left unchanged.
i
(i + distance).mod(size)