code: public function splice($offset = 0, $length = 0, $replacement = [])
      {
          return new static(array_splice($this->elements, $offset, $length, $replacement));
      }
docs: Splice and return new collection from current elements
  
  @param int $offset
  @param int $length
  @param array|mixed $replacement
  @return static