Günther Schmidt | 14 Jan 18:21

Stack Overflow, tail recursion and CPS

Hi all,

I get a stack overflow when I want to insert a huge, lazy list into a Map.

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.

Could CPS be a solution in these cases?

Günther

Gmane