Talk:Sum of Array

From Rosetta Code
Revision as of 14:20, 28 March 2007 by rosettacode>Kevin Reid (array or sequence? Erlang, Prolog, Haskell examples aren't arrays)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Is this task intended to be computing the sum of an array, or the language's usual sequence data structure? I ask because the Erlang, Prolog, and Haskell examples use linked lists instead. Haskell, for example, has arrays but using them is less common; I don't know about Erlang and Prolog. (If it were up to me, I'd move and redescribe the task to be computing the sum of a sequence of numbers.) --Kevin Reid 10:20, 28 March 2007 (EDT)