nltk.deque.rotate

deque.rotate()

Rotate the deque n steps to the right (default n=1). If n is negative, rotates left.