foldRight()
Collapse elements in the set, traversing right to left, give a reducer.
Description
The foldRight()
method collapses elements in the set, traversing right to
left, using the reducer function and passing the last set on the first
call.
The source set isn’t changed.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
seed |
Yes |
Initial state value provided to the reducer Function. |
|
reducer |
Yes |
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!