Neil Mitchell | 14 Jan 18:32
Picon
Gravatar

Re: Stack Overflow, tail recursion and CPS

Hi

> I have changed the insertion algo to use foldl to make it tail-recursive but
> still get a stack overflow as the "insert" remains lazy.

Try foldl' and insertWith' - that should work.

Thanks

Neil

Gmane