1
$\begingroup$

With a list of parameters

list={a,b,c,d,e}

How can I apply a function f to obtain

f[f[f[f[a,b],c],d],e]

For as many parameters there may be in list.

$\endgroup$
2
  • 2
    $\begingroup$ Look up Fold, e.g., Fold[f, {a, b, c, d, e}]. $\endgroup$
    – Carl Woll
    Commented Feb 25, 2018 at 20:49
  • $\begingroup$ @CarlWoll Got it, thanks. $\endgroup$ Commented Feb 25, 2018 at 20:56

0