public function unshift(...$elements)
    {
        foreach ($elements as $element) {
            $this->validate($element);
        }

        return \array_unshift($this->elements, ...$elements);
    }
public function unshift(...$elements)
    {
        foreach ($elements as $element) {
            $this->validate($element);
        }

        return \array_unshift($this->elements, ...$elements);
    }
public function unshift ( ... $ elements ) { foreach ( $ elements as $ element ) { $ this -> validate ( $ element ) ; } return \ array_unshift ( $ this -> elements , ... $ elements ) ; }
Prepends one or more elements to the beginning of the sequence.

@param mixed $elements ...

@return int The number of new elements in the sequence.
Prepends one or more elements to the beginning of the sequence .