Hey, here's an example
Aug. 2nd, 2009 10:22 pmIt's funny how the errors that should be incredibly obvious can fail to be so until you see an example. Of course "as long as the first element of the list is too high, run the function again" will never terminate if the first element of the list never gets removed!
...unfortunately, it's not a case of "just remove the first element of the list, then"; the entire recursion is wrong and will have to be redone...
-Harry
(Also, in neat non-math things: This week I learned how to work a 16mm projector!)
...unfortunately, it's not a case of "just remove the first element of the list, then"; the entire recursion is wrong and will have to be redone...
-Harry
(Also, in neat non-math things: This week I learned how to work a 16mm projector!)
no subject
Date: 2009-08-05 05:03 am (UTC)Right now I'm just testing broken functions piece-by-piece with ghci...
no subject
Date: 2009-08-05 06:00 am (UTC)no subject
Date: 2009-08-05 03:01 am (UTC)no subject
Date: 2009-08-05 05:02 am (UTC)