9 lines
No EOL
324 B
Common Lisp
9 lines
No EOL
324 B
Common Lisp
(set! nil? (lambda (o) (= o nil)))
|
|
|
|
(set! member (lambda
|
|
(item collection)
|
|
"Return `t` if this `item` is a member of this `collection`, else `nil`."
|
|
(cond
|
|
((nil? collection) nil)
|
|
((= item (car collection)) t)
|
|
(t (member item (cdr collection)))))) |