[racket-dev] sequence syntax for (mlist #t #f …) ?

From: John Clements (clements at brinckerhoff.org)
Date: Thu Jun 21 12:01:04 EDT 2012

On Jun 21, 2012, at 1:24 AM, Eli Barzilay wrote:

> An hour and a half ago, John Clements wrote:
>> Yes, of course I can do it the ugly way:
>> [...]
>> (define p1 (mcons #f 'bogus))
>> (set-mcdr! p1 p1)
>> (define true-then-falses (mcons #t p1))
> What about
>  (shared ([fs (cons #f fs)]) (cons #t fs))
>  (cons #t (shared ([fs (cons #f fs)]) fs))

Right! Shared is what I was thinking of. Many thanks.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4800 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20120621/a27e3e79/attachment.p7s>

Posted on the dev mailing list.