Answer the question
In order to leave comments, you need to log in
How to "beautifully" and shortly subtract two arrays element by element?
There are arrays:
a = [1,2,3,4]
b = [5,6,7,8]
c= [5-1, 6-2, 7-3, 8-4] => c=[4, 4, 4, 4]
Answer the question
In order to leave comments, you need to log in
That function will probably have 5 lines: it will take longer to look for something ready than to write it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question