add inner (of lists) type, add floor, ceil, and roundd standard functions, and a ton of examples

This commit is contained in:
Neemek 2025-07-22 22:24:12 +02:00
parent 5bcab07681
commit efbe5a9f97
Signed by: neemek
GPG key ID: 28360A8951CD0E9B
20 changed files with 330 additions and 46 deletions

View file

@ -3,9 +3,8 @@ assertEq(1, 1)
assertEq(0, 0)
assertEq("", "")
assertEq([], [])
assertEq([]number, []number)
assertEq([3, 1, 4, 1], [3, 1, 4, 1])
assertEq([true, 1024, nil, "Hello world!"], [true, 1024, nil, "Hello world!"])
# Inequality
assertNotEq(2, 3)

View file

@ -1,4 +1,4 @@
list := []
list := []number
x := 1
while x <= 1000 {
@ -14,7 +14,7 @@ func sum(a: number, b: number) number {
return a + b
}
list = []
list = []number
x = 1
while x <= 100 {
list.append(2*x - 1)

View file

@ -1,5 +1,5 @@
list := []
list := []number
list.append(1)
list.append(2)

View file

@ -4,9 +4,12 @@ a := 2
{
a := 3
assertEq(a, 3)
breakpoint
a = 4
assertEq(a, 4)
breakpoint
}
assertEq(a, 2)
breakpoint