superleaf.collections.ordered_set#
Classes
|
Similar interface to the native set class, but with item order maintained, and expanded functionality, including addition and summation. |
- class superleaf.collections.ordered_set.OrderedSet(items: Iterable[T] = None)[source]#
Bases:
Generic[T]Similar interface to the native set class, but with item order maintained, and expanded functionality, including addition and summation. Implemented by storing the set items as keys in an internal dict.