Post Reply 
[Programming] Proper Tail Recursion - Bypass recursion limit
03-28-2023, 06:18 AM (This post was last modified: 03-28-2023 07:21 AM by FernandoMorea.)
Post: #2
RE: [Programming] Proper Tail Recursion - Bypass recursion limit
To test the code try with:

myfact(10,1)
long({1,2,3},{4,5,6})

To continue to run the result you can either copy the last result from the top with the arrow key and run it with enter, or you can do:
eval(Ans)

- Or, better, you can write:
cont
After that, you can spam the enter key to run the continuation till the end of the algorithm (in the case of the factorial you have exactly n iteration, so if you wrote myfact(100,1) you should spam the enter key for 100 times, still not practical but it works).
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [Programming] Proper Tail Recursion - Bypass recursion limit - FernandoMorea - 03-28-2023 06:18 AM



User(s) browsing this thread: 1 Guest(s)