deltas

From The K Language Wiki
Deltas
deltas

deltas is used to get the deltas of a numeric array.

It is equivalent to -': in most K dialects.

 deltas 1 6 2 3 4
1 5 -4 1 1