You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it would be nice to have a way to use cordyceps List to build a sorted structure based on a T: Ord key, perhaps using the cursor API. this would allow using List as a kind of bad (O(n)) version of a priority queue.
of course, this would require only using insert_sorted to add to the list, as it would require that the list is always kept in a sorted state. perhaps the best approach would be a wrapper type around a List that disallows the push_front API...
The text was updated successfully, but these errors were encountered:
it would be nice to have a way to use cordyceps
List
to build a sorted structure based on aT: Ord
key, perhaps using the cursor API. this would allow usingList
as a kind of bad (O(n)) version of a priority queue.of course, this would require only using
insert_sorted
to add to the list, as it would require that the list is always kept in a sorted state. perhaps the best approach would be a wrapper type around aList
that disallows thepush_front
API...The text was updated successfully, but these errors were encountered: