Groups
Groups
Sign in
Groups
Groups
Lisp中国用户组
Conversations
About
Send feedback
Help
以下函数是member吗?
2 views
Skip to first unread message
潘飞
unread,
Jun 5, 2011, 4:53:12 AM
6/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lisp-...@googlegroups.com
以下函数是member吗?
(defun member?
(lambda (a lat)
(cond
((null? lat) #f)
(else (or (eq? (car lat) a)
(member? a (cdr lat)))))))
(member? a lat)的值是什么?这里a是meat, lat是
(mashed potatoes and meat gravy)
答:是真的。因为原子meat是lat中的一个原子。
--
Stay Hungry. Stay Foolish.
Reply all
Reply to author
Forward
0 new messages