[plt-scheme] Hash-tables and call/cc

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Fri May 11 11:01:40 EDT 2007

Jens Axel Søgaard skrev:
> 
> Strange, when I test the shift/reset solution i the repl
> everthing looks fine. But when I use with srfi-42 this

> (define (hash-table->generator ht)
>   (let ([continue+x
>          (reset
>           (hash-table-for-each
>            ht
>            (lambda (x v)
>              ;; Return the value and the remaining computation
>              (shift f (cons f v))))

That should have been (cons f x) . Since all vs are #t.

-- 
Jens Axel Søgaard



Posted on the users mailing list.