I have the following lists:
list1={1,2,3,4,5};
list2={10,20,30,40,50};
I want to combine these lists such that each element in list1
is added to every element in list2
, to form list3
as
list3={1+10,1+20,1+30,1+40,1+50,2+10,2+20,2+30,2+40,2+50,....,5+10,5+20,5+30,5+40,5+50}
How can this be done efficiently?