REDUCE-TREE

[GENERIC-FUNCTION]


OM 6.1
Function Reference
ARGUMENTS:
  - self a tree (list) [default = (10 10)]
  - function a function or a patch [default = +]
&optional
 
  - accum a neutral value for  

Description:

Applies the commutative binary <function> recursively throughout the list <self>.
(Applies to the first elements, then the result to the next one, and so forth until the list is exhausted.)

Function '+, for instance, makes reduce-tree computing the sum of all elements in the list.

Optional <accum> should be the neutral element for the <function> considered (i.e. initial result value).
If <accum> is nil, figures out what the neutral can be (works for +,*,min,max).