Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
$ include "seed7_05.s7i";
|
||||
|
||||
const proc: main is func
|
||||
begin
|
||||
writeln([] (1) < [] (1, 2)); # If the first list runs out of elements the result is TRUE.
|
||||
writeln([] (1, 2) < [] (1)); # If the second list runs out of elements the result is FALSE.
|
||||
writeln([] (1, 2) < [] (1, 2)); # If both lists run out of elements the result is FALSE.
|
||||
writeln([] (1, 2, 3) < [] (1, 1, 3)); # The second element is greater than --> FALSE
|
||||
writeln([] (1, 2, 3) < [] (1, 3, 3)); # The second element is less than --> TRUE
|
||||
writeln(0 times 0 < [] (1)); # The empty list is less than any nonempty list --> TRUE
|
||||
writeln([] (1) < 0 times 0); # Any nonempty list is not less than the empty list --> FALSE
|
||||
writeln(0 times 0 < 0 times 0); # The empty list is not less than the empty list --> FALSE
|
||||
end func;
|
||||
Loading…
Add table
Add a link
Reference in a new issue