python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k 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
How do you write a declaration in racket that returns either a string or #f (false)?
I have the following function in racket:
( : search-stack : Symbol KeyStack -> String)
(define (search-stack s stack)
This function searches the stack for a specific string and returns the matching...
Max
Votes: 0
Answers: 1
What is the difference between of code written in DrRacket in "R5RS" vs "#lang racket"?
Is there a difference between in syntax of coding or code will same in both language types?
I wrote a program in #lang racket language but I was supposed to do it in the "R5RS" type.
VIPER
Votes: 0
Answers: 2
Drracket: Finding highest value in a list without in built function
This assignment for a class I'm in has me pretty confused. I was able to get most of the function working but this one part is what's keeping me from completing it. I have two functions which is what ...
Dima
Votes: 0
Answers: 2