powered by
Performs a cyclic right shift on the state vector, moving the last element to the beginning.
shift_right(state)
Integer vector with elements shifted right by one position
Integer vector representing the current permutation state
# Simple example shift_right(1:5) # With variable assignment start_state <- 1:20 result <- shift_right(start_state) print(result)
Run the code above in your browser using DataLab