On 15-Mar-2000, Malcolm Wallace <[EMAIL PROTECTED]> wrote:
> > 1.  Marcin Kowalczyk pointed out that scanl1 and 
> > scanr1 fail on empty args, whereas they could perfectly well 
> > return [] on such arguments.
> 
> Does the same apply for foldl1 and foldr1?

No, returning [] from foldl1 and foldr1 would be ill-typed.

-- 
Fergus Henderson <[EMAIL PROTECTED]>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger [EMAIL PROTECTED]        |     -- the last words of T. S. Garp.

Reply via email to