docs: def replace(doc, pointer, value):
      """Replace element from sequence, member from mapping.
  
      :param doc: the document base
      :param pointer: the path to search in
      :param value: the new value
      :return: the new object
  
      .. note::
  
          This operation is functionally identical to a "remove" operation for
          a value, followed immediately by an "add" operation at the same
          location with the replacement value.
      """
  
      return Target(doc).replace(pointer, value).document