namespace
SharedLib
Source: priorityQueue.
Method
inner public
PriorityQueueFactory(comparator) → Object
Parameter
Name | Type | Optional | Description |
---|---|---|---|
comparator |
function(T, T) |
|
Comparison function like for |
- Returns
-
{pop: function(Array of T) returns Array of (Array of T or T), push: function(Array of T, T) returns Array of T}
an object containing the functions to manage the queue