The
list functions include list.min, list.max,
list.ave and list.sum. For e.g., suppose v
is a vector node that has an integer child
w, and that w's node is 13. Then you can create
a sibling x for v whose dataport is an expression
that uses a subexpression of the form list.ave
(?13?) which yields the average of all the
occurrences of node 13 in the vector. Please
note that the expression node x must be a
sibling of the vector node, not its child.
The functions list.sum and list.ave can be
applied to integer nodes while lsit.min and
list.max can be applied to integers, strings
and dates. |