私はやりたい:
(mapcar #'assoc '(a s) '((a . b) (c . d) (s . f)))
そして返してもらう
((A . B) (S . F))
(assoc 'a '((a . b) (c . d) (s . f)))
返品(A . B)
と(assoc 's '((a . b) (c . d) (s . f)))
返品を考えると、これはかなり合理的(S . F)
です。しかし、残念ながらそれは機能しません:
*** - ASSOC: A is not a list
The following restarts are available:
ABORT :R1 Abort main loop
何かご意見は?