I have a list of functions.
fn=list(
function(x) { ... }
, function(x) { ... }
, ...
)
I want to generate a nested function of these functions.
fn[[1]](fn[[2]](fn[[3]](...(fn[[m]](x))))) # Suppose there are m functions in the list.
Is there an easy way to composite these individual function as a nested function?