public function pad(int $size, $value): self
    {
        return static::create(
            \array_pad($this->getArray(), $size, $value),
            $this->iteratorClass,
            false
        );
    }
public function pad(int $size, $value): self
    {
        return static::create(
            \array_pad($this->getArray(), $size, $value),
            $this->iteratorClass,
            false
        );
    }
public function pad ( int $ size , $ value ) : self { return static :: create ( \ array_pad ( $ this -> getArray ( ) , $ size , $ value ) , $ this -> iteratorClass , false ) ; }
Pad array to the specified size with a given value.

@param int   $size  <p>Size of the result array.</p>
@param mixed $value <p>Empty value by default.</p>

@return static
<p>(Immutable) Arrayy object padded to $size with $value.</p>
Pad array to the specified size with a given value .