标签: list math pattern-matching scheme
(define (pattern lis1 lis2) (cond ((null? lis1) 0) (( = (car lis1) lis2) ( + 1 (pattern (cdr lis1) lis2))) (else (pattern (cdr lis1) lis2))))
这是我到目前为止所拥有的,但是当我运行它时,我收到错误“ =:期望数字作为第二个参数,当我输入时给定'a' (模式'(a a)'(a a a a a a a))