listtools.difference_series — Abjad v1.1.1 documentation

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »

# listtools.difference_series

`abjad.tools.listtools.` `difference_series`(l)

  Return generator of differences of adjacent elements in l.

      >>> l = [1, 1, 2, 3, 5, 5, 6]
      >>> list(listtools.difference_series(l))
      [0, 1, 1, 2, 0, 1]

### Navigation

- index
- modules |
- next |
- previous |
- Project Abjad »
- Abjad v1.1.1 documentation »
- Abjad API »