diff options
author | Juan J. Martinez <jjm@usebox.net> | 2024-04-20 08:53:27 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2024-04-20 08:53:27 +0100 |
commit | db2cc10ca2300f3a905acb57c5f144ff103d58a2 (patch) | |
tree | 998bc3cc29484f49d90ff1c04c32fb67da128b2f /examples | |
parent | fb0f0b5a2685212cf4ba3de40cb208ed15384591 (diff) | |
download | funco-db2cc10ca2300f3a905acb57c5f144ff103d58a2.tar.gz funco-db2cc10ca2300f3a905acb57c5f144ff103d58a2.zip |
Increase in one the call, improved comment
Diffstat (limited to 'examples')
-rw-r--r-- | examples/fold.fco | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/fold.fco b/examples/fold.fco index c9b8e5c..4cb5b06 100644 --- a/examples/fold.fco +++ b/examples/fold.fco @@ -6,7 +6,7 @@ def op(acc x) end end -# generate a list from 1 to n +# generate a list with integers from 1 to n def range(n) def genrec(l limit n) if <(n limit) @@ -18,7 +18,7 @@ def range(n) genrec(list() n 0) end -# add odd numbers from 0 to 1001 +# add odd numbers from 0 to 1000 def main() display(fold(0 op range(1001))) end |