Branch: Tag:

1999-07-26

1999-07-26 15:06:30 by Marcus Comstedt <marcus@mc.pp.se>

Renamed foldl/foldr to reduce/rreduce.

Rev: lib/modules/Array.pmod:1.38

90:    }   }    - mixed foldl(function fun, array arr, mixed|void zero) + mixed reduce(function fun, array arr, mixed|void zero)   {    if(sizeof(arr))    zero = arr[0];
99:    return zero;   }    - mixed foldr(function fun, array arr, mixed|void zero) + mixed rreduce(function fun, array arr, mixed|void zero)   {    if(sizeof(arr))    zero = arr[-1];
108:    return zero;   }    - function reduce = foldl; -  +    array shuffle(array arr)   {    int i = sizeof(arr);