summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc8
1 files changed, 4 insertions, 4 deletions
diff --git a/test.toc b/test.toc
index c12a1f7..c4ab3d9 100644
--- a/test.toc
+++ b/test.toc
@@ -1,19 +1,19 @@
#include "std/io.toc";
-g ::= fn(x : ..) int {
+g ::= fn(modulator: int, x : ..) int {
total := 0;
for e, i := x {
- total += i * (e as int);
+ total += modulator * i * (e as int);
}
total
};
f ::= fn(x : ..) int {
- g(x)
+ g(2, x)
};
main ::= fn() {
- puti(g(5));
+ puti(f(5));
puti(f(5,6));