Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

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

Summary

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

Generic type parameters

TThis type parameter is not documented.