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

Add a method in solutions/18_iterators/iterators4.rs #2138

Closed
wants to merge 1 commit into from

Conversation

1vk3y
Copy link

@1vk3y 1vk3y commented Oct 19, 2024

Add a method that solves the problem: using recursion combined with match to implement factorial.

@mo8it
Copy link
Contributor

mo8it commented Oct 19, 2024

This isn't Haskell :P
In most cases, iterative solutions are more effecient than recursive ones. I don't want to recommend recursion where it isn't needed.

@mo8it mo8it closed this Oct 19, 2024
@1vk3y
Copy link
Author

1vk3y commented Oct 19, 2024

Touché. :D

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.

2 participants