public function __construct(LinqIterator $source, $keyselector, $comparer) { $this->source = $source; $this->currentcomparer = $comparer; $this->currentkeyselector = $keyselector; //call parent::__Construct later. parent::__construct($this); }
public function testRepeat() { $a = LinqIterator::Repeat(9, 5); $this->AssertIteratorsEqual($a, array(9, 9, 9, 9, 9)); }