diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2023-02-28 22:16:22 -0800 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2023-02-28 22:16:22 -0800 |
| commit | a3af974ab4e079f9000c4c34cd5ff468986ca609 (patch) | |
| tree | a1a870b466fa36ed700cd0c37523d5dd0c9d5327 /examples/boundedrecursion.pcdt | |
| parent | 4af02258dbc1564e52a4ae9c75b3664384fcd89d (diff) | |
changed syntax to be a little more normal
Diffstat (limited to 'examples/boundedrecursion.pcdt')
| -rw-r--r-- | examples/boundedrecursion.pcdt | 16 |
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); |
