Re: [racket-users] Re: Checking if two lists contain a word

2017-06-28 Thread David Storrs
On Wed, Jun 28, 2017 at 3:33 AM, wrote: > Thanks guys the tips made me have the idea that I can just write the check > for the second list instead of '(true). > > Here is my solution: > > #lang racket > > > (define (test1 word book book2) > > (cond ((null?

Re: [racket-users] Hint on opening enclosing directory of current file from DrRacket

2017-06-28 Thread Glenn Hoetker
No apology needed. The pop-up menu is a great feature. Thank you very much. -- 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

Re: [racket-users] Hint on opening enclosing directory of current file from DrRacket

2017-06-28 Thread Matthias Felleisen
Apologies. > On Jun 28, 2017, at 8:59 PM, Glenn Hoetker wrote: > > Thanks for the quick comment. Unless I'm missing something (quite > possible...nay, likely), the triangle in the upper left launches a File Open > dialog at the requested location. That's cool and

Re: [racket-users] Hint on opening enclosing directory of current file from DrRacket

2017-06-28 Thread Glenn Hoetker
Thanks for the quick comment. Unless I'm missing something (quite possible...nay, likely), the triangle in the upper left launches a File Open dialog at the requested location. That's cool and useful, but a bit different. The use case I had in mind was wanting access to the folder *in the

Re: [racket-users] Re: Searching diffrences in two lists

2017-06-28 Thread David Storrs
It might also be a good move to read this: http://www.catb.org/esr/faqs/smart-questions.html#intro On Wed, Jun 28, 2017 at 12:21 PM, Glenn Hoetker wrote: > If order doesn't matter and it would be okay for duplicates *within* a > list to be deleted, you might make use of > >

Re: [racket-users] Hint on opening enclosing directory of current file from DrRacket

2017-06-28 Thread Matthias Felleisen
Did you try the down triangle next to the name of the file in the top-left corner? > On Jun 28, 2017, at 5:42 PM, Glenn Hoetker wrote: > > I hope this isn't painfully obvious to everyone but me, but I'd found it > really frustrating until I found a solution. So, I

[racket-users] Hint on opening enclosing directory of current file from DrRacket

2017-06-28 Thread Glenn Hoetker
I hope this isn't painfully obvious to everyone but me, but I'd found it really frustrating until I found a solution. So, I thought I'd share. (If that's not appropriate traffic for the mailing list, I'd appreciate a more veteran hand letting me know. I'm still observing the norms.) Issue:

[racket-users] Re: Searching diffrences in two lists

2017-06-28 Thread Glenn Hoetker
If order doesn't matter and it would be okay for duplicates *within* a list to be deleted, you might make use of * Lists can be converted to sets, via list->set and back again * There are many set methods to yield unions, intersections and differences between sets. See

[racket-users] Re: Searching diffrences in two lists

2017-06-28 Thread Alexander McLin
Consider using the following function https://docs.racket-lang.org/reference/pairs.html?q=memq#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._memq%29%29 It's helpful to sketch out the general steps you'd need to be able to carry out the procedure to solve the problem. My quick sketch

[racket-users] on the name of a data structure

2017-06-28 Thread Daniel Bastos
To me a binary tree can be defined like this. ;; A BinaryTree is either ;; - false OR ;; - (BinaryTree Anything BinaryTree BinaryTree) I built a data structure which looked like a tree, but I think it's different. What should this be called? I called it a blob since I didn't know what it

[racket-users] Searching diffrences in two lists

2017-06-28 Thread philipp Jehova
Hello, how can I search diffrences in two lists. Lets say (diffrences list1 list2) (diffrences '(1 5 4 2) '(3 5 2 7 9) would give back (1 4) since they are the elements of list1 which arent found in list2 I just have no idea how to make this.

[racket-users] Re: Checking if two lists contain a word

2017-06-28 Thread philipp . thiess1999
Thanks guys the tips made me have the idea that I can just write the check for the second list instead of '(true). Here is my solution: #lang racket (define (test1 word book book2) (cond ((null? book) '(false)) ((equal? word (first book)) (cond ((null? book2)