0
我得到這個在分配:DrRacket編程
; subst: [Listof Value] [Listof Name] SExp -> SExp
; substitute the corresponding value for each listed variable name in s
; leave all other names in s unmodified
(define (subst vals vars s) ...)
(define s1 '(foo a 29 (bar "z" b)))
(check-expect (subst '(3 "x") '(a b) s1) '(foo 3 29 (bar "z" "x")))
我知道我需要復發下來兩份名單,但我不知道該如何去做。
這看上去就像EOPL的,在這種情況下,它的「手指操」一個在書的開頭。 – dyoo