Extracted from Pike v7.4 release 341 at 2005-11-30.
pike.ida.liu.se
[Top]
predef::
Array

Method Array.sum_arrays()


Method sum_arrays

array Array.sum_arrays(function(mixed ... :mixed) sum, array ... args)

Description

Applies the function sum columnwise on the elements in the provided arrays. E.g. sum_array(`+,a,b,c) does the same as `+(a[*],b[*],c[*]).