I have the following piece of code which fails with the following error: RuntimeError: maximum recursion depth exceeded I attempted to rewrite this ...
-
May 21, 2022
- 0 Comments
How do I break out a loop? var largest=0 for(i<-999 to 1 by -1) { for (j<-i to 1 by -1) { val ...
-
May 17, 2022
- 0 Comments
Very simply, what is tail-call optimization? More specifically, what are some small code snippets where it could be applied, and where not, with ...
-
April 16, 2022
- 0 Comments
Whilst starting to learn lisp, I’ve come across the term tail-recursive. What does it mean exactly? 3 31