Diff function

Determines difference values ​​of consecutive elements


Description

The function Diff calculates the difference values ​​of the successive elements of a list. The result is also a list that is one element shorter than the argument.


Syntax

Diff (list)

Examples

Diff([2,5,9,11]) =3,4,2