[racket-users] recursive function with multiple arguments

2019-04-10 Thread travis . hinkelman
Hi All, I'm trying to better understand recursion. I decided to rewrite the logmodr function from this blog post as a recursive function. I was easily able to write the recursive functions if all but one of the arguments w

Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread David Storrs
Good point. Thank you. On Wed, Apr 10, 2019 at 8:06 AM Jérôme Martin wrote: > On Wednesday, April 10, 2019 at 12:46:49 PM UTC+2, David Storrs wrote: >> >> Great, thanks! >> >> On Wed, Apr 10, 2019 at 6:35 AM Sorawee Porncharoenwase < >> sorawe...@gmail.com> wrote: >> >>> Use either (... ...) or

Re: [racket-users] Re: raco setup conflicting with slideshow

2019-04-10 Thread Matt Jadud
On Tue, Apr 9, 2019 at 3:55 PM Matthew Flatt wrote: > > Are you running into problems where you really need GUI functionality > to create the image? Or it is just a library is bundled with GUI > functionality --- like `plot`, and maybe the `plot/no-gui` analog is > missing? Or is it more a questi

Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread Jérôme Martin
On Wednesday, April 10, 2019 at 12:46:49 PM UTC+2, David Storrs wrote: > > Great, thanks! > > On Wed, Apr 10, 2019 at 6:35 AM Sorawee Porncharoenwase < > sorawe...@gmail.com > wrote: > >> Use either (... ...) or (quote-syntax ...). >> > Also if you are using syntax-parse, what I usually do is:

Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread David Storrs
Great, thanks! On Wed, Apr 10, 2019 at 6:35 AM Sorawee Porncharoenwase < sorawee.pw...@gmail.com> wrote: > Use either (... ...) or (quote-syntax ...). > > See https://stackoverflow.com/a/38276476/718349 > > On Wed, Apr 10, 2019 at 3:23 AM David Storrs > wrote: > >> Assuming I would like a macro

Re: [racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread Sorawee Porncharoenwase
Use either (... ...) or (quote-syntax ...). See https://stackoverflow.com/a/38276476/718349 On Wed, Apr 10, 2019 at 3:23 AM David Storrs wrote: > Assuming I would like a macro to generate a match statement, like the > following: > > (match foo > [(list (vector x y z) ...) ]) > > '...' al

[racket-users] How can I include a literal ellipsis in a macro?

2019-04-10 Thread David Storrs
Assuming I would like a macro to generate a match statement, like the following: (match foo [(list (vector x y z) ...) ]) '...' already has a meaning for a syntax transformer and I'm not sure how to tell it "no, this one should be inserted literally". I tried putting it into a binding so