Welcome to the CHICKEN Scheme pasting service

medea: eats too much data from input-port added by klm` on Tue Sep 15 18:56:47 2015

(use medea comparse)

;; what i expect to work:
(with-input-from-string "[1] [2]"
  (lambda ()
    (define (next) (receive (read-json)))
    (print (next))
    (print (next))))

;; what works:
(with-input-from-string "[1] [2] [3]"
  (lambda ()
    (let loop ((next (->parser-input (current-input-port))))
      (receive (data next) (read-json next)
        (cond (data (pp data) (loop next)))))))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the result of `(apply + (list -3 4 2))'?
Visually impaired? Let me spell it for you (wav file) download WAV