Welcome to the CHICKEN Scheme pasting service

fixed parens added by fmnt on Tue Dec 18 14:24:34 2018

(use srfi-42)

(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 R5RS procedure returns `'(2 3)' when given `'(1 2 3)' as input?
Visually impaired? Let me spell it for you (wav file) download WAV