(, ):
(define (foo& x k)
(=& x 0 (lambda (r1)
(if r1 (k 1) (k 0)))))
- ( , int) , , "= &" bool- > int.
- ( ) - .
, cps - ( , call/cc), , .
cps, ( -).
, , - , cps . , , , (, ) , , , , . , - , [, , - ]. , , ? , , - stdout, . . , , gambit-C, , - ;). cps [ , cps!].
, "+" .
:
(define (pyth& x y k)
(*& y y (lambda (y2)
(*& x x (lambda (x2)
(+& x2 y2 (lambda (x2py2)
(sqrt& x2py2 k))))))))
.
, , CPS , lambdas, , , , , - , , , C - . !
, mumbo-jumbo, , , , CPS , , " -" ( ) "", "" ( -).
, , , , - cps , cps.
, .