It's funny that multiplication of a single number works on a list for each element but addition does not work the same way.

a:=[1,2,3]

3*a;
       [3,6,9]

3+a;
 error

You have to use zip(`+`,3,a) for it to work.  Is there not a simple way.  Why is that?


Please Wait...