add inner (of lists) type, add floor, ceil, and roundd standard functions, and a ton of examples
This commit is contained in:
parent
5bcab07681
commit
efbe5a9f97
20 changed files with 330 additions and 46 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
list := []
|
||||
list := []number
|
||||
|
||||
list.append(1)
|
||||
list.append(2)
|
||||
|
|
|
|||
|
|
@ -4,9 +4,12 @@ a := 2
|
|||
{
|
||||
a := 3
|
||||
assertEq(a, 3)
|
||||
breakpoint
|
||||
|
||||
a = 4
|
||||
assertEq(a, 4)
|
||||
breakpoint
|
||||
}
|
||||
|
||||
assertEq(a, 2)
|
||||
breakpoint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue