function __construct(array $storage) { parent::__construct(new \ArrayIterator($storage)); $this->size = count($storage); }
function __construct(\Iterator $iterator, $n) { parent::__construct($iterator); $this->n = $n; }
function __construct(InOrderIterator $iterator, $size) { parent::__construct($iterator); $this->size = $size; $this->rewind(); }
function __construct(\Iterator $iterator, callable $map) { parent::__construct($iterator); $this->mapper = $map; }
function __construct(\Iterator $iterator, callable $filter) { parent::__construct($iterator); $this->filter = $filter; }
function __construct(\Iterator $iterator, $start, $count) { parent::__construct($iterator); $this->start = $start; $this->count = $count; }
function __construct(array $array) { parent::__construct(new \ArrayIterator($array)); $this->count = count($array); }
function __construct(BinaryTreeIterator $iterator, $size) { parent::__construct(new ValueIterator($iterator)); $this->size = $size; $this->rewind(); }
function __construct(array $set) { parent::__construct(new ValueIterator(new \ArrayIterator($set))); $this->size = count($set); $this->rewind(); }
function __construct(Vector $vector) { parent::__construct(new \ArrayIterator($vector->toArray())); $this->rewind(); }