public function values(): self
    {
        return static::create(
            function () {
                /** @noinspection YieldFromCanBeUsedInspection */
                foreach ($this->getGenerator() as $value) {
                    yield $value;
                }
            },
            $this->iteratorClass,
            false
        );
    }
public function values(): self
    {
        return static::create(
            function () {
                /** @noinspection YieldFromCanBeUsedInspection */
                foreach ($this->getGenerator() as $value) {
                    yield $value;
                }
            },
            $this->iteratorClass,
            false
        );
    }
public function values ( ) : self { return static :: create ( function ( ) { /** @noinspection YieldFromCanBeUsedInspection */ foreach ( $ this -> getGenerator ( ) as $ value ) { yield $ value ; } } , $ this -> iteratorClass , false ) ; }
Get all values from a array.

@return static
<p>(Immutable)</p>
Get all values from a array .