示例#1
0
 /**
  * Merge two Collection
  * @param Collection $collection
  * @return Collection
  */
 public function merge(Collection $collection)
 {
     $newCollection = $this->copy();
     $collection->each($this->appendFunction($newCollection));
     return $newCollection;
 }