Last active
December 23, 2016 20:41
-
-
Save g000001/f7e9909239808aad70a5cf9fa112948e to your computer and use it in GitHub Desktop.
cnvr.scm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(define (printfoobar) | |
(define place (zowie)) | |
(place) | |
(values)) | |
(define (printfoo) | |
(define place (zowie)) | |
(values)) | |
(define (zowie) | |
(call/cc (lambda (return) | |
(print 'foo) | |
(call/cc (lambda (printbar) | |
(return printbar))) | |
(print 'bar) | |
(lambda () #f)))) ;;??? #fにしたいんだけど…… | |
(pirntfoo) | |
;>> foo | |
(pirntfoobar) | |
;>> foo | |
;>> bar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment