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 shorter than the other, placeholder elements are used to extend the shorter collection to the length of the other.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax public ISequence<Tuple<T, TSecond>> ZipAll<TSecond>(
IEnumerable<TSecond> second,
T elem1,
TSecond elem2
)
public ISequence<Tuple<T, TSecond>> ZipAll<TSecond>(
IEnumerable<TSecond> second,
T elem1,
TSecond elem2
)
Public Function ZipAll(Of TSecond) (
second As IEnumerable(Of TSecond),
elem1 As T,
elem2 As TSecond
) As ISequence(Of Tuple(Of T, TSecond))
Public Function ZipAll(Of TSecond) (
second As IEnumerable(Of TSecond),
elem1 As T,
elem2 As TSecond
) As ISequence(Of Tuple(Of T, TSecond))
public:
generic<typename TSecond>
virtual ISequence<Tuple<T, TSecond>^>^ ZipAll(
IEnumerable<TSecond>^ second,
T elem1,
TSecond elem2
) sealed
public:
generic<typename TSecond>
virtual ISequence<Tuple<T, TSecond>^>^ ZipAll(
IEnumerable<TSecond>^ second,
T elem1,
TSecond elem2
) sealed
abstract ZipAll :
second : IEnumerable<'TSecond> *
elem1 : 'T *
elem2 : 'TSecond -> ISequence<Tuple<'T, 'TSecond>>
override ZipAll :
second : IEnumerable<'TSecond> *
elem1 : 'T *
elem2 : 'TSecond -> ISequence<Tuple<'T, 'TSecond>>
abstract ZipAll :
second : IEnumerable<'TSecond> *
elem1 : 'T *
elem2 : 'TSecond -> ISequence<Tuple<'T, 'TSecond>>
override ZipAll :
second : IEnumerable<'TSecond> *
elem1 : 'T *
elem2 : 'TSecond -> ISequence<Tuple<'T, 'TSecond>>
Parameters
- second
- Type: System.Collections.Generic IEnumerable TSecond
The sequence providing the second half of each result pair.
- elem1
- Type: T
The element to be used to fill up the result if this sequence is shorter than second.
- elem2
- Type: TSecond
The element to be used to fill up the result if second is shorter than this sequence.
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. The length of the returned sequence is Max(this.Count, second.Count).
Implements
ISequence T ZipAll TSecond (IEnumerable TSecond , T, TSecond)See Also