Iteration API

See the relevant tutorial chapters.