recursive_reduce
Utility function used to replicated purrr::reduce. Recursively applies a function to a list of elements until only 1 element remains
1 | recursive_reduce(.l, .f)
|
.l |
list of values to apply a function to |
.f |
function to apply to each each element of the list in turn i.e. .l[[1]] <- .f( .l[[1]] , .l[[2]]) ; .l[[1]] <- .f( .l[[1]] , .l[[3]]) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.