79512092

Date: 2025-03-16 03:56:33
Score: 0.5
Natty:
Report link

Racket doesn't have them, a simple way to define them is:

;; decrement operator
(define (-1+ x)
  (- x 1))

;; increment operator
(define (1+ x)
  (+ x 1))

The solutions above are correct, but indirect. The question is primarily about -1+ and 1+.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: decuser