[racket] racket/db: fetching multiple rows with multiple columns in a "for" loop

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Tue Feb 5 12:14:01 EST 2013

On Tue, Feb 5, 2013 at 5:57 PM, Dmitry Pavlov <dpavlov at ipa.nw.ru> wrote:

> Any hints will be much appreciated.

Does the following help?

(define (function-which-returns-an-unknown-number-of-values)
  (apply values (make-list (random 10) 'foo)))

> (call-with-values function-which-returns-an-unknown-number-of-values list)
'(foo foo foo foo foo)


Posted on the users mailing list.