aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorColin Okay <cbeok@protonmail.com>2020-07-08 20:21:05 -0500
committerColin Okay <cbeok@protonmail.com>2020-07-08 20:21:05 -0500
commit49b1053086af11a3fe8a143dfb981dd5bd11c748 (patch)
tree5c2625c89391bfa5c804de8e7dd37b05da83e455 /README.md
parent98f9bc368bf1a2e37fd85baa785353999df80cbb (diff)
slight rewording
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 604b607..377a5ac 100644
--- a/README.md
+++ b/README.md
@@ -370,14 +370,14 @@ First, you declare and initialize an accumulator variable. In the
above that is the form `(sum 0)`, which declares a variable called
`sum` initialized to `0`.
-Next you put your iteration variable and generator form. These have
-the same syntax as `for`. So in the above we bind a variable `x` to
-each successive value generated by `(times 10)`.
+Next comes your iteration variable and generator form. These have the
+same syntax as `for`. So in the above we bind a variable `x` to each
+successive value generated by `(times 10)`.
Finally, you write a *single update form* whose value becomes bound to your
accumulator variable. In the above example `sum` is set to `(+ sum x)`.
-The `fold` form returns the accumulator when finished.
+The `fold` form returns the final value of the accumulator.
Here are some more folds: