[Haskell-cafe] I read somewhere that for 90% of a wide class
of computing problems, you only need 10% of the source code in
Haskell, that you would in an imperative language.
Felipe Lessa
felipe.lessa at gmail.com
Wed Sep 30 22:11:39 EDT 2009
On Wed, Sep 30, 2009 at 03:43:12PM +0100, Andrew Coppin wrote:
> Well, try this: Go ask a random person how you add up a list of
> numbers. Most of them will say something about adding the first two
> together, adding the third to that total, and so forth. In other
> words, the step by step instructions. Very few of them will answer
> that the sum of an empty list is defined to be zero, and the sum of
> a non-empty list is defined to be the first number plus the sum of
> the list tail.
Maybe they would say that you have to go adding each number to
the others, i.e. they're thinking with a fold.
--
Felipe.
More information about the Haskell-Cafe
mailing list