from typing import Sequence
from typing import Tuple


def differences(x: Sequence[int]) -> Tuple[int, ...]:
    """ Returns the sequence of differences of consecutive elements of x """
    return tuple(x[i + 1] - x[i] for i in range(len(x) - 1))