Created
June 19, 2012 18:52
-
-
Save takikawa/2955868 to your computer and use it in GitHub Desktop.
contracted shift/reset
This file contains hidden or 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
#lang racket | |
(require racket/control) | |
(define/contract pt | |
(prompt/c (-> (-> integer? integer?))) | |
(make-continuation-prompt-tag)) | |
(define f | |
(reset0-at pt | |
(+ 1 (shift0-at pt k k)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment