We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On the page "/scala_tutorial/functional_loops", the last Exercise chrashes the system when programed as an Infinity loop. I did this for fun:
def factorial(n: Int): Int = if (n == 4) 24 else factorial(n - 1) * n factorial(3) shouldBe 6 factorial(4) shouldBe 24
3 will never be 4 so it ends in an Infinty loop
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On the page "/scala_tutorial/functional_loops", the last Exercise chrashes the system when programed as an Infinity loop.
I did this for fun:
3 will never be 4 so it ends in an Infinty loop
The text was updated successfully, but these errors were encountered: