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 ...) <recursive expression goes here>)) On Friday, 6 March 2020 04:01:46 UTC+7, Daniel Prager wrote: > > Hint: > > (define (words-on-line llos) > (match llos > ['() empty] > [(list a b ...) <recursive expression goes here>)) > > 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/d8b94ae8-50de-4b66-ac16-7d3225f56b8b%40googlegroups.com.