Pablo

reduce(fn, [initialValue])

Performs an array reduce on the collection, transforming multiple elements into a single value.

E.g. to calculate the total height of some elements

var squares = Pablo.rect({height:10}).duplicate(9),
    total = squares.reduce(function(total, elem){
        return total + elem.height.baseVal.value;
    }, 0);

alert('Total height: ' + total);
Painting is just another way of keeping a diary.
Pablo Picasso