Lisp中的关联列表 - 获取密钥的所有条目

pra*_*pes 2 lisp common-lisp

在Common Lisp中,有没有办法从alist给定密钥的那个匹配中检索所有条目?

Rai*_*wig 11

(remove 'a '((a 1) (a 2) (b 1))
        :test-not #'eql
        :key #'first)

->

((A 1) (A 2))
Run Code Online (Sandbox Code Playgroud)