public function reject(\Closure $closure): self
    {
        // init
        $filtered = [];

        foreach ($this->getGenerator() as $key => $value) {
            if (!$closure($value, $key)) {
                $filtered[$key] = $value;
            }
        }

        return static::create(
            $filtered,
            $this->iteratorClass,
            false
        );
    }
public function reject(\Closure $closure): self
    {
        // init
        $filtered = [];

        foreach ($this->getGenerator() as $key => $value) {
            if (!$closure($value, $key)) {
                $filtered[$key] = $value;
            }
        }

        return static::create(
            $filtered,
            $this->iteratorClass,
            false
        );
    }
public function reject ( \ Closure $ closure ) : self { // init $ filtered = [ ] ; foreach ( $ this -> getGenerator ( ) as $ key => $ value ) { if ( ! $ closure ( $ value , $ key ) ) { $ filtered [ $ key ] = $ value ; } } return static :: create ( $ filtered , $ this -> iteratorClass , false ) ; }
Return all items that fail the truth test.

@param \Closure $closure

@return static
<p>(Immutable)</p>
Return all items that fail the truth test .