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

Re: [racket-users] HTDP2e Exercise 309

2020-03-05 Thread Daniel Prager
Hint: (define (words-on-line llos) (match llos ['() empty] [(list a b ...) )) Dan -- 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+un