21 Dec 18:56
Re: Why does this blow the stack?
Albert Y. C. Lai <trebla <at> vex.net>
2007-12-21 17:56:38 GMT
2007-12-21 17:56:38 GMT
Justin Bailey wrote: > Given this function: > > dropTest n = head . drop n $ [1..] > > I get a stack overflow when n is greater than ~ 550,000 . Is that > inevitable behavior for large n? Is there a better way to do it? Just for fun, throw in dropTest :: Int -> Int and experiment again! :)
RSS Feed