Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<TResult> SelectManyConsecutivePairs<T, TResult>(this IEnumerable<T>, bool, Func<T, T, IEnumerable<TResult>>)

  • Declared in: RT.Modeling.Md

Declaration

public static IEnumerable<TResult> SelectManyConsecutivePairs<T, TResult>(
    this IEnumerable<T> source,
    bool closed,
    Func<T, T, IEnumerable<TResult>> selector
)

Summary

Processes consecutive pairs of a collection into a new collection and concatenates all of the results.

Generic type parameters

T Type of elements in the input collection.
TResult Type of elements in the resulting collection.

Parameters

this IEnumerable<T>source Input elements to process.
boolclosed Specifies whether the last element is considered to connect back to the first element (closed loop).
Func<T, T, IEnumerable<TResult>>selector Provides a function to process each pair of consecutive elements into a collection of results.

Returns

The concatenated result collections.