pop# IndexSetND.pop(index=-1, /)[source]# Remove and return the element at a position index in the IndexSet. Parameters: indexint, default -1 (last element) Returns: element Raises: IndexErrorIf the IndexSet is empty. IndexErrorIf position index is out of range.