public function prepend($value)
    {
        // the reindexing is complicated to deal with through the iterator
        // so let's use the simple solution
        $arr = $this->getArrayCopy();
        $ret = array_unshift($arr, $value);
        $this->exchangeArray($arr);

        return $ret;
    }
public function prepend($value)
    {
        // the reindexing is complicated to deal with through the iterator
        // so let's use the simple solution
        $arr = $this->getArrayCopy();
        $ret = array_unshift($arr, $value);
        $this->exchangeArray($arr);

        return $ret;
    }
public function prepend ( $ value ) { // the reindexing is complicated to deal with through the iterator // so let's use the simple solution $ arr = $ this -> getArrayCopy ( ) ; $ ret = array_unshift ( $ arr , $ value ) ; $ this -> exchangeArray ( $ arr ) ; return $ ret ; }
Prepend one or more elements to the beginning of the collection

@param  mixed   $value the element to prepend
@return integer The number of new elements in the array
Prepend one or more elements to the beginning of the collection