Type of elements within the source iterable.
The source iterable.
Number of positions to rotate. Positive values move elements toward the end (left rotation); negative values move them toward the beginning (right rotation).
A sequence containing the same elements shifted by the requested amount.
The source is buffered sufficiently to honour the rotation. Rotation amounts larger than the length of source are normalised by that length, which may require buffering the full sequence.
Returns a deferred sequence that rotates the elements by the specified offset while preserving length.