The InfiniteIterator class

Introduction

The InfiniteIterator allows one to infinitely iterate over an iterator without having to manually rewind the iterator upon reaching its end.

Class synopsis

InfiniteIterator
extends IteratorIterator
/* Methods */
public InfiniteIterator::__construct(Iterator $iterator)
public void InfiniteIterator::next()
/* Inherited methods */
public mixed current()
public Iteratornull getInnerIterator()
public mixed key()
public void next()
public void rewind()
public bool valid()
Table of Contents