Re: [racket-users] Pattern Matching

2020-10-06 Thread George Neuner
On 10/6/2020 10:41 AM, Beatriz Moreira wrote: Hello, Yes, my idea is to check the type of the parameters. I still have to add the types to my code, but I was trying to see if I could do it without them (just pattern matching), as the functions of type *f* are in the declaration of the

Re: [racket-users] Differences running HtDP programs from DrRacket IDE vs racket command line

2020-10-06 Thread Robby Findler
Great! No guarantee, but probably this is the right repo: https://github.com/racket/htdp/issues Robby On Tue, Oct 6, 2020 at 9:04 AM Nick Lee wrote: > Thanks again Robby! I will create issues on the drracket github issues > page. > > On Tuesday, October 6, 2020 at 9:23:49 AM UTC-4 Robby

Re: [racket-users] Pattern Matching

2020-10-06 Thread Beatriz Moreira
Hello, Yes, my idea is to check the type of the parameters. I still have to add the types to my code, but I was trying to see if I could do it without them (just pattern matching), as the functions of type *f* are in the declaration of the contract. Can you access this link?

Re: [racket-users] Pattern Matching

2020-10-06 Thread Beatriz Moreira
Hello, I don't think this is what im looking for, but thank you very much :D A segunda-feira, 28 de setembro de 2020 à(s) 20:31:11 UTC+1, gneuner2 escreveu: > > On 9/28/2020 10:50 AM, Beatriz Moreira wrote: > > Hello, > I would like to know how do I match multiple variables to a regular >

Re: [racket-users] Differences running HtDP programs from DrRacket IDE vs racket command line

2020-10-06 Thread Nick Lee
Thanks again Robby! I will create issues on the drracket github issues page. On Tuesday, October 6, 2020 at 9:23:49 AM UTC-4 Robby Findler wrote: > On Tue, Oct 6, 2020 at 1:50 AM Nick Lee wrote: > >> Thank you very much Robby for the quick reply! I should have mentioned >> that our students

Re: [racket-users] Differences running HtDP programs from DrRacket IDE vs racket command line

2020-10-06 Thread Robby Findler
On Tue, Oct 6, 2020 at 1:50 AM Nick Lee wrote: > Thank you very much Robby for the quick reply! I should have mentioned > that our students are using Beginning Student by setting the Language to > that, rather than adding #lang htdp/bsl. > Right, I got that. I merely meant to say that those are

[racket-users] Re: access a `#` from c code

2020-10-06 Thread Nate Griswold
I realized i already asked this question and Matthew Flatt had responded like this, for anyone wondering: --- I see that there's not a good way right now, but here's a workaround that uses information about the current layout: A cpointer value is implemented as a Chez Scheme record with either

Re: [racket-users] Differences running HtDP programs from DrRacket IDE vs racket command line

2020-10-06 Thread Nick Lee
Thank you very much Robby for the quick reply! I should have mentioned that our students are using Beginning Student by setting the Language to that, rather than adding #lang htdp/bsl. It appears this makes a difference. So the whole file looks like: ;; The first three lines of this file were