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