public function at(\Closure $closure): self
    {
        $arrayy = clone $this;

        foreach ($arrayy->getGenerator() as $key => $value) {
            $closure($value, $key);
        }

        return static::create(
            $arrayy->toArray(),
            $this->iteratorClass,
            false
        );
    }
public function at(\Closure $closure): self
    {
        $arrayy = clone $this;

        foreach ($arrayy->getGenerator() as $key => $value) {
            $closure($value, $key);
        }

        return static::create(
            $arrayy->toArray(),
            $this->iteratorClass,
            false
        );
    }
public function at ( \ Closure $ closure ) : self { $ arrayy = clone $ this ; foreach ( $ arrayy -> getGenerator ( ) as $ key => $ value ) { $ closure ( $ value , $ key ) ; } return static :: create ( $ arrayy -> toArray ( ) , $ this -> iteratorClass , false ) ; }
Iterate over the current array and execute a callback for each loop.

@param \Closure $closure

@return static
<p>(Immutable)</p>
Iterate over the current array and execute a callback for each loop .