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