summaryrefslogtreecommitdiff
path: root/examples/boundedrecursion.pcdt
diff options
context:
space:
mode:
authorKai Stevenson <kai@kaistevenson.com>2023-02-28 22:16:22 -0800
committerKai Stevenson <kai@kaistevenson.com>2023-02-28 22:16:22 -0800
commita3af974ab4e079f9000c4c34cd5ff468986ca609 (patch)
treea1a870b466fa36ed700cd0c37523d5dd0c9d5327 /examples/boundedrecursion.pcdt
parent4af02258dbc1564e52a4ae9c75b3664384fcd89d (diff)
changed syntax to be a little more normal
Diffstat (limited to 'examples/boundedrecursion.pcdt')
-rw-r--r--examples/boundedrecursion.pcdt16
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/boundedrecursion.pcdt b/examples/boundedrecursion.pcdt
index 3187960..12981da 100644
--- a/examples/boundedrecursion.pcdt
+++ b/examples/boundedrecursion.pcdt
@@ -1,9 +1,11 @@
-store(1000; maxSize;)
+store(1000, "maxSize");
store(
ref((
- print(arg0())
- if(not(eq(arg0() maxSize())) incFunc(sum(1; arg0())))
- ))
- incFunc;
-)
-incFunc(0;)
+ print(arg0);
+ if(not(eq(arg0, maxSize))
+ incFunc(sum(1, arg0));
+ )
+ ));
+ "incFunc";
+);
+incFunc(0);