public function mapSpread(callable $callback)
    {
        return $this->map(function ($chunk, $key) use ($callback) {
            $chunk[] = $key;

            return $callback(...$chunk);
        });
    }
public function mapSpread(callable $callback)
    {
        return $this->map(function ($chunk, $key) use ($callback) {
            $chunk[] = $key;

            return $callback(...$chunk);
        });
    }
public function mapSpread ( callable $ callback ) { return $ this -> map ( function ( $ chunk , $ key ) use ( $ callback ) { $ chunk [ ] = $ key ; return $ callback ( ... $ chunk ) ; } ) ; }
Run a map over each nested chunk of items.

@param  callable  $callback
@return static
Run a map over each nested chunk of items .