Exercise: iterators - cycle


  • Reimplement the cycle functions of itertools using iterator class.