Welcome to the CHICKEN Scheme pasting service

apply hangs added by evhan on Sat Jan 16 05:06:25 2016

;; define lists of lengths 32761, 32762
(define ok
  (do ((i 0 (add1 i))
       (a (list) (cons 1 a)))
      ((= i 32761) a)))

(define bad
  (cons 1 ok))

(apply values bad)        ; hangs csi
(apply values ok)         ; works
(apply + bad)             ; works
(void (apply values bad)) ; works

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
What's the R5RS procedure to access the first element of a pair?
Visually impaired? Let me spell it for you (wav file) download WAV