I would like to make an addition of two IEnumerable using Linq
example :
class Calcul
{
public static IEnumerable<int> Add(IEnumerable<int> firstList,
IEnumerable<int> secondList)
{
}
}
In the Add function, I would like to make an addition of the members from these lists and I know that is possible to reduce in a single line by using Linq (lambda expression). I would like to know how to.
Thanks.
You could use
Zip: