I have a problem with this example
(define (+ x y)
(if (= x 0)
y
(+ (-1+ x) (1+ y))))
What is the problem with -1+ and 1+, when i evaluate it i get this result
- DrScheme: -1+: this function is not defined
- racket : reference to undefined identifier: -1+
but i write this instead and it works
(define (add x y)
(if (= x 0)
y
(+ (- x 1) (+ y 1))))