Priority queue: Difference between revisions
m
→{{header|Wren}}: Minor tidy
imported>Thebeez |
m (→{{header|Wren}}: Minor tidy) |
||
Line 8,448:
{{libheader|Wren-queue}}
The above module contains a PriorityQueue class. Unlike some other languages here, the higher the number, the higher the priority. So the 'Make tea' task has the highest priority and, thankfully, the cat has a good chance of being fed!
<syntaxhighlight lang="
var tasks = PriorityQueue.new()
|