powered by
Apply an rmonad pipeline function to each element in a rmonad bound list
loop(m, FUN, looper = lapply, ...)
Rmonad object wrapping a vector
function of an element from the vector stored in m that returns an Rmonad object.
m
function that applies each element in the input vector to FUN. The default it lapply.
FUN
lapply
Additional arguments sent to FUN
Rmonad object wrapping a vector of the values wrapped by the outputs of FUN
# NOT RUN { foo <- function(x) { x %>>% sqrt } c(256, 6561) %v>% sqrt %>% loop(foo) %>>% lapply(sqrt) # }
Run the code above in your browser using DataLab