From 5a388b42afa4569caa8b55d9ace8479ef10fc057 Mon Sep 17 00:00:00 2001 From: Sven Steinbauer Date: Fri, 2 Jun 2017 14:51:51 +0100 Subject: [PATCH] Clarify value of base on first iteration of fold The original text was a bit confusing as it read as if the accumulator was given the value of base on the first iteration. --- first-edition/src/iterators.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first-edition/src/iterators.md b/first-edition/src/iterators.md index 548816a8d..588e983cb 100644 --- a/first-edition/src/iterators.md +++ b/first-edition/src/iterators.md @@ -177,7 +177,7 @@ is an element called the *base*. The second is a closure that itself takes two arguments: the first is called the *accumulator*, and the second is an *element*. Upon each iteration, the closure is called, and the result is the value of the accumulator on the next iteration. On the first iteration, the -base is the value of the accumulator. +base is assigned the value of the accumulator. Okay, that's a bit confusing. Let's examine the values of all of these things in this iterator: