src/Map.php
public function getIterator()
    {
        $keys  = $this->keys();
        $count = count($keys);
        $index = 0;

        while ($index < $count) {
            $key   = $keys[$index];
            $value = $this->get($key);

            yield $key => $value;

            $index++;
        }
    }
public function getIterator()
    {
        $keys  = $this->keys();
        $count = count($keys);
        $index = 0;

        while ($index < $count) {
            $key   = $keys[$index];
            $value = $this->get($key);

            yield $key => $value;

            $index++;
        }
    }
public function getIterator ( ) { $ keys = $ this -> keys ( ) ; $ count = count ( $ keys ) ; $ index = 0 ; while ( $ index < $ count ) { $ key = $ keys [ $ index ] ; $ value = $ this -> get ( $ key ) ; yield $ key => $ value ; $ index ++ ; } }
Get an iterator for the map.

@return \Generator
@api
Get an iterator for the map .