original_string: public function withoutElement(int $idx): self
      {
          if (!isset($this->_elements[$idx])) {
              throw new \OutOfBoundsException(
                  "Structure doesn't have element at index $idx.");
          }
          $obj = clone $this;
          array_splice($obj->_elements, $idx, 1);
          return $obj;
      }
code: public function withoutElement(int $idx): self
      {
          if (!isset($this->_elements[$idx])) {
              throw new \OutOfBoundsException(
                  "Structure doesn't have element at index $idx.");
          }
          $obj = clone $this;
          array_splice($obj->_elements, $idx, 1);
          return $obj;
      }
code_tokens: public function withoutElement ( int $ idx ) : self { if ( ! isset ( $ this -> _elements [ $ idx ] ) ) { throw new \ OutOfBoundsException ( "Structure doesn't have element at index $idx." ) ; } $ obj = clone $ this ; array_splice ( $ obj -> _elements , $ idx , 1 ) ; return $ obj ; }
docstring: Get self with an element at the given index removed.
  
  @param int $idx Element index
  @throws \OutOfBoundsException
  @return self
docstring_tokens: Get self with an element at the given index removed .