Welcome to the CHICKEN Scheme pasting service

hash-table-update!/default in list-ec added by fmnt on Tue Dec 18 11:35:59 2018

(let ((table (make-hash-table)))
  (list-ec (: i 0 2) (: j 0 2)
           (hash-table-update!/default table (list i j)
                                       (lambda (x)
                                         (append x (list j)))
                                       (list j))
           (hash-table->alist table)))
;;; Result:   (((0 1) 1 1) ((1 0) 0 0) ((1 1) 1 1) ((0 0) 0 0))
;;; Expected: (((0 1) 1)   ((1 0) 0)   ((0 0) 0)   ((1 1) 1))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which version of Scheme does C4 implement?
Visually impaired? Let me spell it for you (wav file) download WAV