Re: [racket] handy trick for "amb-collect" desired

2010-09-14 Thread Stefan Busch
Hello, at compile-time. Stefan Am 14.09.2010 18:42, schrieb Deren Dohoda: Stefan, Are you trying to pass a run-time list to amb? Or just (amb (list 1 2 3 ...)) at compile-time? Deren On Tue, Sep 14, 2010 at 12:10 PM, Stefan Busch wrote: Hello, of course I have to use amb-collect

Re: [racket] handy trick for "amb-collect" desired

2010-09-14 Thread Stefan Busch
. 2 ) ) *** I'm looking for a way to use two lists instead to provide these values: (1 2 3 4 5 6 7) and (2 4 6 8) Thanks, Stefan Am 14.09.2010 17:50, schrieb Thomas Chust: 2010/9/14 Stefan Busch: [...] Your solutio

Re: [racket] handy trick for "amb-collect" desired

2010-09-14 Thread Stefan Busch
may be implemented more efficiently; I don't know which amb library you're using, so I can't help you there. Note that the simple solution of using (apply amb *someList*) will fail, since amb is a macro, not an ordinary function. Good luck! Will On Sep 12, 2010, at 9:16 AM, Stefan B

[racket] handy trick for "amb-collect" desired

2010-09-12 Thread Stefan Busch
Hello racket community, though it may be impolite to enter the community with a wish, I'd like to ask for help with the following problem: I want a and b to "run through" all elements of two given lists, and then to catch the combinations that fullfill a desired condition with an "amb-assert" s