Using Strawberry Fields
Development
API
shift_by
Convenience function to shift a list by a number of steps.
If n is positive it shifts to the left.
n
l (list) – list to be shifted
n (int) – size of the shift