I guess this transformation is what I'm looking for:
(transform 
(list
 stuff ...
 (if test
         (list yes ...)
         (list no ...))
 more ...))

=>

(if test
        (transform (list stuff ... yes ... more ...))
        (transform (list stuff ... no ... more ...)))

but of course you can't put anything after the ... in the same list in a 
syntax-rules pattern, not to mention there's no indication which ellipses 
correspond to what. I don't know how flattening using syntax-rules is even 
possible...

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to