[Haskell-beginners] maximum: stack overflow?

Alexander Dunlap alexander.dunlap at gmail.com
Fri Mar 13 00:43:07 EDT 2009


On Thu, Mar 12, 2009 at 9:33 PM, Roland Zumkeller
<roland.zumkeller at gmail.com> wrote:
> Why is maximum not defined in terms of foldl1'? Probably because
> situations in which non-strictness is beneficial are thought to be
> more common.

How did this get established? Isn't maximum always (semantically)
strict anyway? I.e.

maximum [1,2,undefined] = undefined

Alex


More information about the Beginners mailing list