core: fix example in Array.reduce (thanks @Emiluren)

This commit is contained in:
hellerve 2020-01-06 23:29:49 +01:00
parent 99bf013b81
commit a67c33d2f5

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`.")