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)
|
||||||
(fold (lambda (y x)
|
(if (= (length xs) 1)
|
||||||
(string->es "$$x - $$y"))
|
(- 0 (car xs))
|
||||||
(car xs)
|
(fold (lambda (y x)
|
||||||
(cdr xs)))
|
(string->es "$$x - $$y"))
|
||||||
|
(car xs)
|
||||||
|
(cdr xs))))
|
||||||
(define (zero? x)
|
(define (zero? x)
|
||||||
(eq? x 0))
|
(eq? x 0))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue