public function listIterator($index = 0)
 {
     return $this->list->listIterator($index);
 }
Ejemplo n.º 2
0
 /**
  * Copies a subpart of the list src into dest
  * @param blaze\collections\ListI $src
  * @param blaze\collections\ListI $dest
  */
 public static function copyOfRange(ListI $src, \int $from, \int $to, ListI $dest)
 {
     $dest->clear();
     $iterator = $src->listIterator($from);
     for ($i = $from; $i < $to; $i++) {
         $dest->add($src->get($i));
     }
 }