iterate

abjad.top.iterate.iterate(client=None)

Makes iteration agent.

Iterates leaves:

>>> staff = abjad.Staff("c'4 e'4 d'4 f'4")
>>> abjad.show(staff) 
>>> for leaf in abjad.iterate(staff).leaves():
...     leaf
... 
Note("c'4")
Note("e'4")
Note("d'4")
Note("f'4")