Skip to content

Instantly share code, notes, and snippets.

@kidrane
Created July 28, 2013 12:29
Show Gist options
  • Save kidrane/6098407 to your computer and use it in GitHub Desktop.
Save kidrane/6098407 to your computer and use it in GitHub Desktop.
The Scheme programming language. Exercise 3.11
#lang racket
(define (e311)
(let ((x (call/cc (lambda (k) (list 0 k)))))
(display (car x))
(newline)
((car (cdr x)) (cons (+ 1 (car x)) (cdr x)))))
(e311)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment