@@ 364-373 (lines=10) @@ | ||
361 | * |
|
362 | * @return Sequence |
|
363 | */ |
|
364 | public function pairs(): Sequence |
|
365 | { |
|
366 | $sequence = new Vector(); |
|
367 | ||
368 | foreach ($this->pairs as $pair) { |
|
369 | $sequence[] = $pair->copy(); |
|
370 | } |
|
371 | ||
372 | return $sequence; |
|
373 | } |
|
374 | ||
375 | /** |
|
376 | * Associates a key with a value, replacing a previous association if there |
|
@@ 568-577 (lines=10) @@ | ||
565 | * |
|
566 | * @return Sequence |
|
567 | */ |
|
568 | public function values(): Sequence |
|
569 | { |
|
570 | $sequence = new Vector(); |
|
571 | ||
572 | foreach ($this->pairs as $pair) { |
|
573 | $sequence[] = $pair->value; |
|
574 | } |
|
575 | ||
576 | return $sequence; |
|
577 | } |
|
578 | ||
579 | /** |
|
580 | * Get iterator |