Post Scarcity
A prototype for a post scarcity programming environment
Loading...
Searching...
No Matches
member.lisp
Go to the documentation of this file.
1(set! nil? (lambda
2 (o)
3 "`(nil? object)`: Return `t` if object is `nil`, else `t`."
4 (= o nil)))
5
6(set! member? (lambda
7 (item collection)
8 "`(member item collection)`: Return `t` if this `item` is a member of this `collection`, else `nil`."
9 (cond
10 ((nil? collection) nil)
11 ((= item (car collection)) t)
12 (t (member? item (cdr collection))))))
13
14;; (member? (type member?) '("LMDA" "NLMD"))