python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Rewriting a common function using tail-end recursion
I've been trying to tinker with this code to rewrite a "repeat" function using tail-end recursion but have gotten a bit stuck in my attempts.
(define (repeat n x)
(if (= n 0)
'()
...

Schultzie67
Votes: 0
Answers: 1
Questions about using recursive functions in lisp
I'm a beginner at lisp. I'm grateful that stackoverflow helped me a lot.
First, I want to express the recursive function using the lisp function.
There is no compilation error, but I want to check if ...
Eugene
Votes: 0
Answers: 1
Questions about replacing while and if statements with lisp
I want to change the code below to Lisp code, but I keep getting errors in grammar. How do I fix the if statement?
int promising(int i)
{
int k = 1;
while (k < i)
{
if (col[i]...
Eugene
Votes: 0
Answers: 2
Syntax Error in Lisp Loop for defining variables in a loop
I am a beginner student who is learning Lisp. I want to turn the loop to the i value using k using the loop statement, but the following error appears. I think I wrote the parentheses correctly, but I...
Eugene
Votes: 0
Answers: 1