racket/collects/web-server/default-web-root/htdocs/lang-servlets/mm00.ss
2007-06-01 17:15:31 +00:00

16 lines
397 B
Scheme

(module mm00 (lib "lang.ss" "web-server")
(provide start)
(define (gn which)
(cadr
(send/suspend
(lambda (k)
(let ([ignore (printf "Please send the ~a number.~n" which)])
k)))))
(define (start initial)
(let ([ans (+ (gn "first")
(gn "second")
(gn "third"))])
(printf "The answer is: ~s~n" ans)
ans)))