Use Hoa\Iterator.
Use hoa/iterator ~1.0.