If I have a list of numbers as (the number of elements in this list is even)
list={1,23,32,54,65,76,87,98,109,110,...}
How can I ask Mathematica to subtract each adjacent pair, and then, sum them, i.e. compute this value
$sum=(...)+(110-109)+(98-87)+(76-65)+(54-32)+(23-1)$
Total@BlockMap[Subtract @@ # &, Reverse@list, 2]
? $\endgroup$Total[#[[2 ;; ;; 2]] - #[[;; ;; 2]]] &@list
, orTotal@Differences[list][[;; ;; 2]]
? $\endgroup$