Implement till 4.38

This commit is contained in:
2021-02-01 13:02:33 -05:00
parent 36f6c875b9
commit a23aebd0d0
3 changed files with 303 additions and 6 deletions

View File

@@ -7,6 +7,17 @@
(display b)))
(newline))
; I have this here to avoid name-conflicts with the amb implementation in
; amb.scm.
(define (my-assert a b)
(cond ((equal? a b) (display "[ok]"))
(else
(display "[error] ")
(display a)
(display " != ")
(display b)))
(newline))
(define (gcd a b)
(if (= b 0) (abs a) (gcd b (remainder a b))))