From db2cc10ca2300f3a905acb57c5f144ff103d58a2 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 20 Apr 2024 08:53:27 +0100 Subject: Increase in one the call, improved comment --- examples/fold.fco | 4 ++-- 1 file 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 -- cgit v1.2.3