Lets say I have a macro

(define-syntax (macro stx)
  (syntax-parse stx
    [(_ (var1 ...) (var 2 ...))
           (do-something (#freeze var1) var2)

and I want to iterate first over var2, and then over var1. So if I type

(macro (1 2 3) (1 2))

I should get

    (do-something 1 1)
    (do-something 1 2))
    (do-something 2 1)
    (do-something 2 2))
    (do-something 3 1)
    (do-something 3 2)))

What do I put where I currently have "#freeze" to tell the expander that I 
don't want the ... to affect var1? Or do I have to do this manually with 
syntax->list and mapping functions?

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