Welcome to the CHICKEN Scheme pasting service

no title added by jyc on Sat Aug 10 09:03:47 2013

(define (mode entry)
  (let ((inc 0))
    (define k #f)
    (set! entry (call/cc (lambda (n)
                           (set! k n)
                           entry)))
    (set! inc (+ inc entry))
    (write inc)
    (newline)
    k))

(define a (mode 1))
(a 2)
;((mode 1) 2)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which R5RS procedure returns `'(2 3)' when given `'(1 2 3)' as input?
Visually impaired? Let me spell it for you (wav file) download WAV