14 Jan 18:21
Stack Overflow, tail recursion and CPS
Günther Schmidt <redcom <at> fedoms.com>
2009-01-14 17:21:51 GMT
2009-01-14 17:21:51 GMT
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
RSS Feed