public function union($value)
    {
        // force data conversion to array
        $value = Collection::cast($value, $this->type)->getInternalValue();

        $this->setInternalValue($this->getInternalValue() + $value);

        return $this;
    }
public function union($value)
    {
        // force data conversion to array
        $value = Collection::cast($value, $this->type)->getInternalValue();

        $this->setInternalValue($this->getInternalValue() + $value);

        return $this;
    }
public function union ( $ value ) { // force data conversion to array $ value = Collection :: cast ( $ value , $ this -> type ) -> getInternalValue ( ) ; $ this -> setInternalValue ( $ this -> getInternalValue ( ) + $ value ) ; return $ this ; }
Modify the collection using values from the current instance and another map

This uses the same rules as "array + array" (union) operation in native PHP

@param mixed $value

@return Collection
Modify the collection using values from the current instance and another map