-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stack overflow in your solution for McCarthy91 problem #1
Comments
Could you please provide some context for the issue you have? There is a unit test for the solution and it passes without problem. |
Here is my code snippet that I refer from your one: module McCarthy91 where
mc91 :: Integer -> Integer
mc91 n
| n > 100 = n - 10
| otherwise = mc91 (mc91 (n + 1)) I try that code in GHCi as follow:
So, because your test passed successfully, is this a GHCi-related problem? |
I think you got a typo in your definition, it should be |
OMG sorry for bothering you for such a silly mistake. Thank you very much for your time! |
Sure, no problem :) |
stack overflow in your solution for McCarthy91 problem
The text was updated successfully, but these errors were encountered: