rebirth: relibprebirth: Negate unary -
* build-aux/bootstrap/rebirth/relibprebirth.scm (-): Negate when given only a single argment.master
parent
6daa3501b6
commit
a76327ca0f
|
@ -142,10 +142,12 @@
|
||||||
0
|
0
|
||||||
xs))
|
xs))
|
||||||
(define (- . xs)
|
(define (- . xs)
|
||||||
|
(if (= (length xs) 1)
|
||||||
|
(- 0 (car xs))
|
||||||
(fold (lambda (y x)
|
(fold (lambda (y x)
|
||||||
(string->es "$$x - $$y"))
|
(string->es "$$x - $$y"))
|
||||||
(car xs)
|
(car xs)
|
||||||
(cdr xs)))
|
(cdr xs))))
|
||||||
(define (zero? x)
|
(define (zero? x)
|
||||||
(eq? x 0))
|
(eq? x 0))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue