Skip to content
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

feat+fix: deep-level return statements support && half-support for recursion #95

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

pacifiquem
Copy link
Member

Now you can return an expression wherever you want in a function!!
This works:

# Writing computer programs in Kinyarwanda

porogaramu_ntoya factorial(a) {
  niba (a == 0 || a == 1) {
    tanga 1
  }
  tanga a * factorial(a - 1)
}

tangaza_amakuru(factorial(5))

@pacifiquem pacifiquem merged commit 542f55c into main Mar 23, 2024
2 checks passed
@pacifiquem pacifiquem deleted the return-fix branch March 23, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant