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
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
2 matches
Mail list logo