[Haskell-cafe] reversing big list with constant heap space used

David House dmhouse at gmail.com
Wed May 16 13:21:53 EDT 2007


On 16/05/07, Sergey Perminov <sv.perminov at gmail.com> wrote:
> How to solve task of reversing big list with constant heap space used?

I think that as lists are singly-linked in Haskell, reversing a list
will always be O(n) space.

-- 
-David House, dmhouse at gmail.com


More information about the Haskell-Cafe mailing list