constant space `minimum'

Serge D. Mechveliani mechvel at botik.ru
Fri Sep 10 05:26:21 EDT 2004


Dear GHC developers,

The library functions like  minimum, maximum,  
should perform in a constant space: probably, it is easy to write
them his way.
And  ghc-6.2.2-pre  shows

  Prelude> minimum [1 .. (10^4)]
  1

  Prelude> minimum [1 .. (10^6)]

  *** Exception: stack overflow
  Prelude>

What do you think of this, please?

-----------------
Serge Mechveliani
mechvel at botik.ru


More information about the Glasgow-haskell-users mailing list