R5RS is Scheme. The S is for Scheme. Do you mean the add1 from Racket?
- Joshua Taylor
2 Answers
6
votes
The procedure add1 is very simple, you can implement it yourself:
(define (add1 x)
(+ x 1))
0
votes
late answer but an alternative is (making use of lambdas)..
(define add1
(lambda (x)
(+ x 1)))
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more