Post Scarcity 0.0.6
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 (o) (= (type o) "NIL ")))
2
3(set! CDR (lambda (o)
4 (print (list "in CDR; o is: " o) *log*)
5 (let ((r . (cdr o)))
6 (print (list "; returning: " r) *log*)
7 (println *log*)
8 (println *log*)
9 r)))
10
11(set! member?
12 (lambda
13 (item collection)
14 ;; (print (list "in member?: " 'item item 'collection collection) *log*)(println *log*)
15 (cond
16 ((nil? collection) nil)
17 ((= item (car collection)) t)
18 (t (member? item (cdr collection))))))