I have a list
I want to calculate absolute differences of each element with all other elements
and then calculate the total for each subarray
I want to write it in one line basically, need help here
b=[#1-a]&/@a isn't working.
Do someone has an easy way to write it out, instead of using any module loop? thanks in advance