next | previous | forward | backward | up | top | index | toc | home

accumulate(VisibleList,Function)

Synopsis

Description

accumulate({xn,...,x1,x0},f) -- computes the list {...,f(x2,f(x1,x0)),f(x1,x0)}.
i1 : accumulate({a,b,c,d,e}, identity)

o1 = {(a, (b, (c, (d, e)))), (b, (c, (d, e))), (c, (d, e)), (d, e)}

o1 : List