insert# IndexSet1D.insert(index, elem, /)[source]# Insert an element at a position index in the IndexSet. Parameters: indexint elemelement Raises: ValueErrorIf the element is invalid. ValueErrorIf the element is already present in the IndexSet (introduces a duplicate).