mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
Typo in odd? simplification from last patch.
This commit is contained in:
parent
d17720018c
commit
894d3c5451
1 changed files with 1 additions and 1 deletions
|
@ -1102,7 +1102,7 @@
|
||||||
(define (positive? x) (> x 0))
|
(define (positive? x) (> x 0))
|
||||||
(define (negative? x) (< x 0))
|
(define (negative? x) (< x 0))
|
||||||
(define (even? n) (= (remainder n 2) 0))
|
(define (even? n) (= (remainder n 2) 0))
|
||||||
(define (odd? n) (not (= (remainder n 1) 0)))
|
(define (odd? n) (not (= (remainder n 2) 0)))
|
||||||
|
|
||||||
(define (abs x) (if (< x 0) (- x) x))
|
(define (abs x) (if (< x 0) (- x) x))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue