public function merge(iterable $items, bool $inPlace = false): self
    {
        $collection = $inPlace ? $this : clone $this;
        foreach ($items as $key => $value) {
            $collection->set($key, $value);
        }

        return $collection;
    }
public function merge(iterable $items, bool $inPlace = false): self
    {
        $collection = $inPlace ? $this : clone $this;
        foreach ($items as $key => $value) {
            $collection->set($key, $value);
        }

        return $collection;
    }
public function merge ( iterable $ items , bool $ inPlace = false ) : self { $ collection = $ inPlace ? $ this : clone $ this ; foreach ( $ items as $ key => $ value ) { $ collection -> set ( $ key , $ value ) ; } return $ collection ; }
Merge the items and the collections and return a new Collection.

Note that is a real merge, numerical keys are merged too.(unlike array_merge)

@performanceCompared true
Merge the items and the collections and return a new Collection .