How are iterators functional language features? They're not unique to functional languages and they don't require function composition to implement. They're present in most popular imperative languages.
In that case you're passing around a function, which matches how this chapter characterizes "functional programming".