compute the left-to-right running difference between successive elements
the returned array's length is decremented by one. as a result, a single element array will turn into an empty array
becareful when using with unsigned typed arrays