AVL tree: Difference between revisions
m
→{{header|Logtalk}}: Test formatting.
Ttmrichter (talk | contribs) (→{{header|Lua}}: Added Logtalk solution.) |
m (→{{header|Logtalk}}: Test formatting.) |
||
Line 8,454:
=={{header|Logtalk}}==
The Logtalk library comes with an AVL implementation of its
<syntaxhighlight lang="logtalk">
Line 8,468:
{{Out}}
This makes the use of an AVL tree in Logtalk dirt simple. First we load the
<pre>
Line 8,483:
</pre>
Using Logtalk's broadcast notation to avoid having to repeatedly type
<pre>
Line 8,503:
</pre>
To save some rote typing, the
<pre>
|