mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 13:37:57 +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
|
Returns a `Pair` where the first element is the mapped array and the second one
|
||||||
is the final accumulator.
|
is the final accumulator.
|
||||||
|
|
||||||
The function `f` receives two arguments: the first one is the element, and the
|
The function `f` receives two arguments: the first one is the accumulator, and
|
||||||
second one is the accumulator. `f` must return `(Pair result accumulator)`.
|
the second one is the element. `f` must return `(Pair accumulator result)`.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user