public static IEnumerable <Pair <T, T> > AdjacentPairs <T>(this IEnumerable <T> list) { return(Iterable.AdjacentPairs(list.AsIterable())); }