Continued fraction/Arithmetic/Construct from rational number: Difference between revisions

Line 4,571:
(if (zero? d)
(call-with-current-continuation
(lambda (kont) (consumer #f kont)))
(call-with-values (lambda () (values #f kont))
consumer)))
(let-values (((q r) (floor/ n d)))
(loop d r (call-with-current-continuation
(lambda (kont) (consumer q kont)))))))))
(call-with-values (lambda ()
(values q kont))
consumer)))))))))
 
(define (display-cf term producer)
1,448

edits