docs: fix order of args in map-reduce docs (#1203)

This commit is contained in:
Veit Heller 2021-04-20 09:52:24 +02:00 committed by GitHub
parent 00146c70b9
commit 2afe09a94e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,8 +422,8 @@ element, while keeping an accumulator and a list.
Returns a `Pair` where the first element is the mapped array and the second one
is the final accumulator.
The function `f` receives two arguments: the first one is the element, and the
second one is the accumulator. `f` must return `(Pair result accumulator)`.
The function `f` receives two arguments: the first one is the accumulator, and
the second one is the element. `f` must return `(Pair accumulator result)`.
Example:
```