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,2 @@
.x()
# call user-defined function

View file

@ -0,0 +1,2 @@
write(.key, ": ", .value)
# call built-in with parentheses

View file

@ -0,0 +1,2 @@
write .key, ": ", .value
# call built-in with unbounded list

View file

@ -0,0 +1,3 @@
writeln "numbers: ", join ", ", [.a1, .a2, .a3, .a4]
# unbounded lists on writeln and join
# later function join takes remaining arguments

View file

@ -0,0 +1,3 @@
writeln "numbers: ", join(", ", [.a1, .a2, .a3, .a4]), " === "
# unbounded list on writeln
# join using parentheses so it doesn't take remaining arguments

View file

@ -0,0 +1,7 @@
val .sum = foldfrom(
f(.sum, .i, .c) .sum + toNumber(.c, 36) x .weight[.i],
0,
pseries len .code,
split ZLS, .code,
)
# split, pseries, and len using unbounded lists, ending before comma preceding line return

View file

@ -0,0 +1,4 @@
for .key in sort(keys .tests) {
...
}
# unbounded list on keys bounded by closing parenthesis of sort