如何接受以下输入?
(list of 0 or more charcters and ends with 3) or
(list of 1 or more characters 4 and 0 or more characters after 4)
就像是
(match ( list 3)) -> #t
(match ( list 1 2 3)) -> #t
(match (list 1 2 3 4)) -> #t
(match (list 1 2 3 4 5)) -> #t
(match (list 4)) -> #f
编辑:这不是我的作业。我试图从 PAIP 写出类似 ELIZA 的东西,但我只知道如何写一个以单词开头的模式。