Description Usage Arguments See Also
Working directly with base::Reduce
can be a little tricky,
so this function aims to simplify using it. It's intended to be
partially applied with something like:
pryr::partial(updateFoldRight, f=identity)
and then passed as the function argument to foldRightList
.
1 | updateFoldRight(result, newArg, f)
|
result |
The growing collection of a |
newArg |
The new argument being processed. |
f |
The function to apply to the new argument to generate a
new element for |
foldRightList
for the intended destination
of a partially-applied version of this,
Reduce
for what's wrapped.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.