+ As to your other point, it's definitely conceivable that a library developer could add more convenient methods to the <code><span style="color:#2b91af;">PriorityCollection</span><<span style="color:#2b91af;">T</span>></code> class, including one that uses a simple formula to redistribute existing priorities to make way for the new one. As far as I can tell, though, you'd be able to implement such more convenient APIs as extension methods that are implemented using the basic affordances already on display here. If so, we may consider the constructor and the <code><span style="color:#2b91af;">IReadOnlyCollection</span><<span style="color:#2b91af;">Prioritized</span><<span style="color:#2b91af;">T</span>>></code> interface as the fundamental API. Everything else, including the <code>Edit</code> method, could build off that.
0 commit comments