7 lines
403 B
ReStructuredText
7 lines
403 B
ReStructuredText
Chapter 4 - design patterns
|
|
=======================================================================================================================
|
|
|
|
- Create a SortedDict collection that takes a keyfunc to decide the sort order.
|
|
- Create a SortedList collection that has O(log(n)) inserts and always returns a sorted list during each iteration.
|
|
- Create a Borg pattern that has a state per subclass.
|