Scheme(Dr.Racket)返回包含一些atom的列表

Scheme(Dr.Racket)返回包含一些atom的列表,scheme,racket,Scheme,Racket,我希望能够在Scheme中的列表中搜索atom的某个函数,比如说,google。如果该列表包含原子,我想返回该列表。例: (google 'dave '((www.sillypage.com this page says dave among other things) (www.happypage.com this page does not say the name) (www.theone.com but this dave sure says

我希望能够在Scheme中的列表中搜索atom的某个函数,比如说,
google
。如果该列表包含原子,我想返回该列表。例:

(google 'dave '((www.sillypage.com this page says dave among other things)
           (www.happypage.com this page does not say the name)
           (www.theone.com but this dave sure says dave)
          ))
应返回以下列表:

(www.sillypage.com www.theone.com)

这听起来像是家庭作业;如果不是作业,请告诉我


有了这样的假设:这个问题非常符合列表上函数的标准设计方法,如第10.1节所述。看一看,告诉我们你坚持的是设计配方的哪一步

我已经浏览了你链接的那个网站,但我还是迷路了。似乎没有任何例子与我正在尝试的例子类似。@GregPotts如果你把你的问题分解为“在列表中查找一件事”、“在列表中获取第一件事”和“生成一个列表”,那么这三个例子都有很多。