[]
Selects items with references to the previous and next elements.
public static IEnumerable<TResult> SelectWithPrevNext<T, TResult>(this IEnumerable<T> items, Func<T, T, T, TResult> selector) where T : class
Type | Name | Description |
---|---|---|
IEnumerable<T> | items | The source sequence. |
Func<T, T, T, TResult> | selector | A function to project each element with references to the previous and next elements. |
Type | Description |
---|---|
IEnumerable<TResult> | A sequence of projected elements. |
Name | Description |
---|---|
T | The type of elements in the sequence. |
TResult | The type of elements in the result sequence. |