| @@ 309-322 (lines=14) @@ | ||
| 306 | ); |
|
| 307 | } |
|
| 308 | ||
| 309 | public function keys() |
|
| 310 | { |
|
| 311 | return $this->constructScopedSelf( |
|
| 312 | $this->scheme->reindexerIterator( |
|
| 313 | $this->scheme->projectionIterator( |
|
| 314 | $this->elements, |
|
| 315 | null, |
|
| 316 | function ($value, $key) { |
|
| 317 | return $key; |
|
| 318 | } |
|
| 319 | ) |
|
| 320 | ) |
|
| 321 | ); |
|
| 322 | } |
|
| 323 | ||
| 324 | public function reindex() |
|
| 325 | { |
|
| @@ 381-391 (lines=11) @@ | ||
| 378 | ); |
|
| 379 | } |
|
| 380 | ||
| 381 | public function selectMany(callable $function) |
|
| 382 | { |
|
| 383 | $projectionIterator = |
|
| 384 | $this->scheme->projectionIterator( |
|
| 385 | $this->elements, |
|
| 386 | null, |
|
| 387 | $function |
|
| 388 | ); |
|
| 389 | ||
| 390 | return $this->constructScopedSelf($this->scheme->flattenedIterator($projectionIterator)); |
|
| 391 | } |
|
| 392 | ||
| 393 | // </editor-fold> |
|
| 394 | ||