Skip to content

Instantly share code, notes, and snippets.

@takikawa
Created June 19, 2012 18:52
Show Gist options
  • Save takikawa/2955868 to your computer and use it in GitHub Desktop.
Save takikawa/2955868 to your computer and use it in GitHub Desktop.
contracted shift/reset
#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