Combines two sequences.
public static IEnumerable<(T1, T2)> ZipTruncate<T1, T2>(this IEnumerable<T1> first,
IEnumerable<T2> second)
parameter | description |
---|---|
first | An IEnumerable whose elements will be returned as ValueTuple.First. |
second | An IEnumerable whose elements will be returned as ValueTuple.Second. |
A sequence of tuples combining the input items. If the sequences don’t have the same number of items, it stops at the end of the shorter sequence.