[PD] lists and sums

IOhannes m zmoelnig zmoelnig at iem.kug.ac.at
Tue Apr 16 10:21:57 CEST 2002

stm_sq^n wrote:
> hi list,
> what is the fastest way to get the sum from a list of integers ?
> actually i unpack the list and play around with the [+ ] ...
> wich causes to make big patch for nothing, whereas i suppose there may
> be somewhere somekind of list2sum object ... or maybe a better method
> ...
as far as i know, there is no [list2sum] (i would recommend simply [sum])

this is surely an overhead but:
if you have lists of varying length you can use zexy's
[mean], which gets (1/n)*sum(), and multiply it with the [length] of the 


More information about the Pd-list mailing list