L
L
LiptonOlolo2020-06-15 14:30:32
C++ / C#
LiptonOlolo, 2020-06-15 14:30:32

How to glue 2 IEnumerable into 1?

There are 2 IEnumerable. How to merge them into 1 sequence, but only, not through the Concat method, so that the output is something like ? IEnumerable<Tuple<int, int>>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-06-15
@LiptonOlolo

var ee = enum1.Zip(enum2, (e1, e2) => new Tuple<int, int>(e1, e2));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question