Priority queue: Difference between revisions
m
→{{header|Logtalk}}
Ttmrichter (talk | contribs) |
|||
Line 4,389:
heap(<)::top(H4, K4, V4). % K4=2, V4='Tax return'</syntaxhighlight>
Since `heap` is a
<syntaxhighlight lang="logtalk">:- object(minheap,
Line 4,416:
:- end_object.</syntaxhighlight>
Given the presence of these two
=={{header|Lua}}==
|