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
@noizu Instead of writing a custom implementation of priority queue, we might consider using erlang's built-in :gb_trees or another lib that uses pairing heaps. One reason being we don't want to use atoms for each priority and instead use positive integers. We'll allow the users to use any integer in 0..10 as the priority for now, with the default being 5. We might change this range in the future.
The Que.add API should remain the same; priority and other future options should now be specified in the optional Keyword list opts as the third argument. It would look like:
Related to #19.
:queue
with a priority queue data structureQue.add
API to support optionsThe text was updated successfully, but these errors were encountered: