How to map a function over two lists, first one and than the other?
For example, assuming I have two lists {a,b,c} and {d,e,f}:
[#1 + #2] & /@ {{a,b,c},{d,e,f}}
That maps the expression simultaneously, but I want a result looking like:
{{a+d},{a+e},{a+f},{b+d},{b+e},...}
{{a, b, c}, {d, e, f}} // Total
? p.s.[#1 + #2] & /@
is not a valid syntax. $\endgroup$