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-on-line empty) empty)
(check-expect (words-on-line (list empty)) (list 0))
(check-expect (words-on-line (list (list "22" "rr" "ff") (list "22" "rr"))) (list 3 2))
(define (words-on-line llos)
(for/list ((los llos))
(length los)))
Can I get a hint?