Returns a sequence of tuples, where each tuple is formed by associating an element of this sequence with the element at the same position in the second sequence.
If one of the two sequences is longer than the other, its remaining elements are ignored.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public ISequence<Tuple<T, TSecond>> Zip<TSecond>(
IEnumerable<TSecond> second
)
public ISequence<Tuple<T, TSecond>> Zip<TSecond>(
IEnumerable<TSecond> second
)
Public Function Zip(Of TSecond) (
second As IEnumerable(Of TSecond)
) As ISequence(Of Tuple(Of T, TSecond))
Public Function Zip(Of TSecond) (
second As IEnumerable(Of TSecond)
) As ISequence(Of Tuple(Of T, TSecond))
public:
generic<typename TSecond>
virtual ISequence<Tuple<T, TSecond>^>^ Zip(
IEnumerable<TSecond>^ second
) sealed
public:
generic<typename TSecond>
virtual ISequence<Tuple<T, TSecond>^>^ Zip(
IEnumerable<TSecond>^ second
) sealed
abstract Zip :
second : IEnumerable<'TSecond> -> ISequence<Tuple<'T, 'TSecond>>
override Zip :
second : IEnumerable<'TSecond> -> ISequence<Tuple<'T, 'TSecond>>
abstract Zip :
second : IEnumerable<'TSecond> -> ISequence<Tuple<'T, 'TSecond>>
override Zip :
second : IEnumerable<'TSecond> -> ISequence<Tuple<'T, 'TSecond>>
Parameters
- second
- Type: System.Collections.Generic IEnumerable TSecond
The sequence providing the second half of each result pair.
Type Parameters - TSecond
- The type of the elements of second.
Return Value
Type:
ISequence Tuple T,
TSecond A sequence of tuples, where each tuple is formed by associating an element of the first sequence with the element at the same position in the second sequence.
Implements
ISequence T Zip TSecond (IEnumerable TSecond )See Also