Namespace: Assorted.Utils.Collections
Assembly: Assorted.Utils (Assorted.Utils.dll) version 1.1.0.0
Rotates the sequence by a specific number of elements to right.
public static IEnumerable<TSource> RotateRight<TSource>(this IEnumerable<TSource> source, int count)
TSource
The type of elements in the source
.
source
: IEnumerable<TSource>
A sequence of values.
count
: int
The number of elements to rotate. A negative value rotates the sequence to left.
IEnumerable<TSource>
An System.Collections.Generic.IEnumerable<T>
where each of its elements are in the input sequence.
Exception | Description |
---|---|
System.ArgumentNullException | source is null . |
This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action.
- Assorted.Utils.Collections Namespace
- EnumerableExtensions Class
- RotateLeft<TSource>(this IEnumerable<TSource>, int)
This document is generated by DG.