Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<ValueTuple<T, T>> AllPairs<T>(this IEnumerable<T>)

Declaration

public static IEnumerable<ValueTuple<T, T>> AllPairs<T>(
    this IEnumerable<T> source
)

Summary

Returns an enumeration of tuples containing all pairs of elements from the source collection. For example, the input sequence 1, 2 yields the pairs [1,1], [1,2], [2,1], and [2,2].

Generic type parameters

TThis type parameter is not documented.