-
Notifications
You must be signed in to change notification settings - Fork 292
Closed
Labels
Description
reduce does not work in the following example.
Should reduce applied to a lust of functions work this way?
compose <- function(f,g){
function(x)f(g(x))
}
compose(sin,sqrt)(2)
reduce(list(sin,sqrt),compose,.dir="backward")(2)
reduce(list(sin,sqrt),compose,.dir="forward")(2)
reduce(list(sin,sqrt),compose,.dir="forward") %>% class()
reduce(list(sin,sqrt),compose,.dir="backward") %>% class()
Reactions are currently unavailable