Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,3 @@
env := environment; # Call a function that requires no arguments.
env := environment(); # Alternative possibility to call of a function with no arguments.
cmp := compare(i, j); # Call a function with a fixed number of arguments.

View file

@ -0,0 +1,2 @@
write(aFile, "asdf"); # Variant of write with a parameter to specify a file.
write("asdf"); # Variant of write which writes to the file OUT.

View file

@ -0,0 +1,13 @@
const func integer: sum (in array integer: intElems) is func
result
var integer: sum is 0;
local
var integer: element is 0;
begin
for element range intElems do
sum +:= element;
end for;
end func;
s := sum([] (1, 2, 3)); # Use an aggregate to generate an array.
t := sum([] (2, 3, 5, 7));

View file

@ -0,0 +1 @@
write("Nr: " <& num); # Use operators to concatenate arguments.

View file

@ -0,0 +1 @@
ignore(getln(IN)); # Using a function in statement context (ignore the result).

View file

@ -0,0 +1 @@
seq := doMap([](1, 2, 4, 6, 10, 12, 16), x, succ(x));