> Not with map, which requires equal-length arguments.
> You could do the slightly less ugly:
> (range (length lst-A)))
Why not do it this way?
(struct foo (a b c))
(define lst-A '(a b))
(define lst-B '(d e))
(for/list ([a (in-list lst-A)]
[b (in-list lst-B)]
(foo a b n))
This seems to be the nicest of the lot.
You received this message because you are subscribed to the Google Groups "Racket
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.