On 12 November 2012 04:50, Alex Stangl <a...@stangl.us> wrote: > I'm stymied trying to figure out why the program below blows up with > <<<loop>>> when I use "f 0"
If you replace the a!0 in f by its value 0, f is equivalent to: f k = if k > 0 then f 0 else 0 : f 1 Do you see the loop now? Maybe you meant f to be: f k = if k > 0 then f (a!k) else 0 : f 1 Regards, Bas _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe