in reply to Re: Summing the elements of multiple arrays into a new array
in thread Summing the elements of multiple arrays into a new array
That is a pretty cool looking solution there andye, but shouldn't you use or instead of and, to account for cases where one array may have greater length than the other, as the other responses do? I can't help but point out that as written, your solution only works in the special case where both arrays have the same number of elements...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Summing the elements of multiple arrays into a new array
by andye (Curate) on Nov 01, 2001 at 17:37 UTC | |
by blakem (Monsignor) on Nov 02, 2001 at 01:25 UTC | |
by ichimunki (Priest) on Nov 02, 2001 at 03:09 UTC | |
by blakem (Monsignor) on Nov 02, 2001 at 05:17 UTC |