sf.tdm.shift_by

shift_by(l, n)[source]

Convenience function to shift a list by a number of steps.

If n is positive it shifts to the left.

Parameters
  • l (list) – list to be shifted

  • n (int) – size of the shift