mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
docs: fix order of args in map-reduce docs (#1203)
This commit is contained in:
parent
00146c70b9
commit
2afe09a94e
@ -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:
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user