[racket-dev] actionable items, was: comments on "comments on learning Racket"

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Mon Apr 28 13:10:02 EDT 2014

On 04/28/2014 10:08 AM, Laurent wrote:
> On Mon, Apr 28, 2014 at 3:47 PM, Matthias Felleisen
> <matthias at ccs.neu.edu <mailto:matthias at ccs.neu.edu>> wrote:
> [...]
>
> Why not something like `apply->list` or `apply/list`?
> (personally I usually call it `cvl` for call/values->list, but that's
> because I often use it on the command line, which makes going from `(foo
> 'a 'b 'c)` to `(cvl foo 'a 'b 'c)` effortless)
>
>          (define (nth-return-value i f . s)
>            (call-with-values
>             (lambda () (apply f s))
>             (lambda l (list-ref l i))))

unstable/list has an unexported 'values->list' macro that takes an 
expression and returns the list of values it produces.

Ryan


Posted on the dev mailing list.