[racket-users] HTDP2E 22.3 Domain-Specific Languages: Configurations

2020-03-30 Thread Aron Zvi
Hey guys In 22.3 Domain-Specific Languages: Configurations, the book introduces the following data example and data definitions for FSM configurations (define

[racket-users] HTDP2e Exercise 342 find-all

2020-03-21 Thread Aron Zvi
Hi guys, Can I get a hint for Exercise 342 find-all -- 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 racket-users+unsubscr...@googlegroups.com. To view this di

[racket-users] Re: HTDP2e part 4: 20.3 Refining Functions dir.rkt

2020-03-19 Thread Aron Zvi
;"))) *I am expecting to get this * (make-dir 'test (list (make-dir *'a* (list (make-dir *'docs* '() '())) (list (make-file ".DS_Store" 6148 (make-date 2020 3 20 13 7 33) "") (make-file "me.txt" 0 (make-date 2020 3 20 13 1 4

[racket-users] HTDP2e part 4: 20.3 Refining Functions dir.rkt

2020-03-19 Thread Aron Zvi
Hey guys, In part 4 section 20.3 Refining Functions I am using (require htdp/dir) and (create-dir DIR-PATH). I get back a Dir instance with name value being a full path symbol of the folder. ie. (make-dir '/Users/SSS/Documents/xyz empty empty). This does not seem to be in line with the exercis

[racket-users] HTDP2e Exercise 320 help

2020-03-11 Thread Aron-Zvi
Hey guys, I'm working on Exercise 320 and I am not sure if I am in the right direction. For the first part "Reformulate the data definition for S-expr so that the first clause is expanded into the three clauses of Atom

Re: [racket-users] HTDP2e Exercise 309

2020-03-05 Thread Aron Zvi
Thanks. I initially tried as below with first pattern [empty empty] and empty apparently is a variable that will match a non-empty list. I need to use '*()* (define (words-on-line llos) (match llos [*empty* empty] [(list a b ...) )) On Friday, 6 March 2020 04:01:46 UTC+7, Daniel

[racket-users] HTDP2e Exercise 309

2020-03-05 Thread Aron Zvi
Hey Guys, I do not see how to apply pattern matching to this problem. Using for/list as below makes the most sense to me and I do not see how to fit in pattern matching ; [List-of [List-of String]] -> [List-of Natural] ; produces list of number of Strings per item in a llos (check-expect (words

[racket-users] HTDP/2e exercise 219 help

2019-12-01 Thread Aron Zvi
Hey Guys, I'm having trouble with exercise 219. I'm following the hint and interpreting “eating” that the head moves where the food used to be located. My problem is that I need to the food to be (randomly) placed only where the worm head can exactly reach it. The worm moves at a fixed increme

[racket-users] HTDP/2e help

2019-11-18 Thread Aron Zvi
Hi guys, I am working through HTDP/2e alone and I occasionaly have trouble with the exercises. Is this the right place to ask for help? If so, what is the proper way to ask? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from