From 49b1053086af11a3fe8a143dfb981dd5bd11c748 Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Wed, 8 Jul 2020 20:21:05 -0500 Subject: slight rewording --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') 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: -- cgit v1.2.3