Merge pull request #632 from hellerve/fix-array-reduce-example

Fix example in Array.reduce documentation
This commit is contained in:
Erik Svedäng 2020-01-07 10:39:18 +01:00 committed by GitHub
commit d0f2c447be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ As an example, consider this definition of `sum` based on `reduce`:
```
(defn sum [x]
(reduce + 0 x))
(reduce &(fn [x y] (+ x @y)) 0 x))
```
It will sum the previous sum with each new value, starting at `0`.")