powered by
Performs a cyclic left shift on the state vector, moving the first element to the end.
shift_left(state)
Integer vector with elements shifted left by one position
Integer vector representing the current permutation state
# Basic shift operation shift_left(1:5) # With variables start_state <- 1:20 result <- shift_left(start_state) print(result)
Run the code above in your browser using DataLab