function merge(\CharlotteDunois\Collect\Collection $collection) {
        return (new self(\array_merge($this->data, $collection->all())));
    }
function merge(\CharlotteDunois\Collect\Collection $collection) {
        return (new self(\array_merge($this->data, $collection->all())));
    }
function merge ( \ CharlotteDunois \ Collect \ Collection $ collection ) { return ( new self ( \ array_merge ( $ this -> data , $ collection -> all ( ) ) ) ) ; }
Merges the given collection into this collection, resulting in a new collection.
Any string key in the given collection matching a string key in this collection will overwrite the value in this collection.
@param \CharlotteDunois\Collect\Collection  $collection
@return \CharlotteDunois\Collect\Collection
Merges the given collection into this collection resulting in a new collection . Any string key in the given collection matching a string key in this collection will overwrite the value in this collection .