src/Collection/Dictionary.php
public function update($other){
        if(is_array($other)){
            $this->_array = $other;
            return $this;
        }
        $this->_array = array();
        foreach($other as $key=>$value){
            $this->_array[$key] = $value;
        }
        return $this;
    }
public function update($other){
        if(is_array($other)){
            $this->_array = $other;
            return $this;
        }
        $this->_array = array();
        foreach($other as $key=>$value){
            $this->_array[$key] = $value;
        }
        return $this;
    }
public function update ( $ other ) { if ( is_array ( $ other ) ) { $ this -> _array = $ other ; return $ this ; } $ this -> _array = array ( ) ; foreach ( $ other as $ key => $ value ) { $ this -> _array [ $ key ] = $ value ; } return $ this ; }
Updates the values of this hash with the values of other.

@param Traversable: $other
@return Dictionary
Updates the values of this hash with the values of other .