mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-26 16:48:46 +00:00
Better error reporting; synched with ostap
This commit is contained in:
parent
290c124be6
commit
b6180d8634
13 changed files with 59 additions and 68 deletions
|
|
@ -1,23 +0,0 @@
|
|||
import Collection;
|
||||
|
||||
local tree = {}, i;
|
||||
|
||||
for i := 100, i >= 1, i := i-1 do
|
||||
tree := insert (tree, i, i);
|
||||
printf ("Inserting: %s\n", i.string);
|
||||
printf ("Result : %s\n", tree.string)
|
||||
od;
|
||||
|
||||
tree := {};
|
||||
|
||||
for i := 1, i <= 100, i := i+2 do
|
||||
tree := insert (tree, i, i);
|
||||
printf ("Inserting: %s\n", i.string);
|
||||
printf ("Result : %s\n", tree.string)
|
||||
od;
|
||||
|
||||
for i := 2, i <= 100, i := i+2 do
|
||||
tree := insert (tree, i, i);
|
||||
printf ("Inserting: %s\n", i.string);
|
||||
printf ("Result : %s\n", tree.string)
|
||||
od
|
||||
Loading…
Add table
Add a link
Reference in a new issue