Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

View file

@ -2,7 +2,7 @@
|you can expand a list to function arguments
|by prefixing it with the unary plus.
|^
List a = int[1,2,3]
List b = int[4,5,6]
List c = int[+a, +b]
List a ← int[1, 2, 3]
List b ← int[4, 5, 6]
List c int[+a, +b]
writeLine(c)

View file

@ -0,0 +1,10 @@
void local fn ConcatArrays
CFArrayRef array1 = @[@1,@2,@3], array2 = @[@4,@5,@6]
CFArrayRef array3 = concat(array1,array2) // any number of arguments
print array3
end fn
fn DoIt
HandleEvents

View file

@ -0,0 +1,2 @@
let concat(a, b) := a + b
assert(concat([1, 2, 3], [4, 5, 6]) = [1, 2, 3, 4, 5, 6])

View file

@ -1,3 +1,2 @@
let a = [1 2 3]
let b = [4 5 6]
[$a $b] | flatten

View file

@ -0,0 +1 @@
$a ++ $b

View file

@ -0,0 +1 @@
[...$a ...$b]

View file

@ -0,0 +1 @@
$a | append $b

View file

@ -0,0 +1 @@
$b | prepend $a

View file

@ -0,0 +1 @@
[$a $b] | flatten

View file

@ -0,0 +1,3 @@
a is [1, 2, 3];
b is [4, 5, 6];
[$a..., $b...] !