Indexes the values by their 0-based position.
public reindex ( ) : pinq\ITraversable | ||
Результат | pinq\ITraversable |
public function visitReindex(Segments\Reindex $query) { $this->traversable = $this->traversable->reindex(); }
/** * @dataProvider everything */ public function testThatValuesReindexesTheValuesByTheirZeroBasedPosition(\Pinq\ITraversable $traversable, array $data) { $this->assertMatches($traversable->reindex(), array_values($data)); }