code: def add(doc, pointer, value):
      
      return Target(doc).add(pointer, value).document
docs: Add element to sequence, member to mapping.
  
      :param doc: the document base
      :param pointer: the path to add in it
      :param value: the new value
      :return: the new object