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
Hi, I think we need more STL objects like Prioirty Queue, Queue and Stack and a "generic" Map.
function comparator(var a, var b) {
return lexicographic_compare(a, b);
}
var o = Class.new(3, 4, 5);
var m = GenericMap.new(comparator);
m[Class.new(3, 4, 5)] = o;
var pQ = PriorityQueue.new(comparator);
pQ.push(o);
while (!pQ.empty()) {
var u = pQ.top(); pQ.pop();
pQ.push(Class.new(3, 4));
}
The text was updated successfully, but these errors were encountered:
Hi, I think we need more STL objects like Prioirty Queue, Queue and Stack and a "generic" Map.
The text was updated successfully, but these errors were encountered: