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

fold(Function,VisibleList)

Synopsis

Description

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

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

o1 : Sequence
i2 : fold(plus, {1,2,3,4,5})

o2 = 15