[]
Projection of given sequence with first, last markers.
public static IEnumerable<TR> Select<T, TR>(this IEnumerable<T> items, Func<T, bool, bool, TR> selector)
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | items | The sequence of elements to project. |
| Func<T, bool, bool, TR> | selector | A transform function to apply to each element; the second and third parameters of the function represent whether the element is the first and last in the sequence, respectively. |
| Type | Description |
|---|---|
| IEnumerable<TR> | returns sequence from first to last marker |
| Name | Description |
|---|---|
| T | The type of the elements of the input sequence. |
| TR | The type of the elements of the result sequence. |