Indexable Set Recipe¶
-
class
sortedcollections.
IndexableSet
(*args, **kwargs)¶ Set that supports numerical indexing.
Values are numerically indexable. For example:
>>> indexable_set = IndexableSet('abcde') >>> sorted(indexable_set[:]) == ['a', 'b', 'c', 'd', 'e'] True
IndexableSet implements the sequence abstract base class.