3 (setq L '(1 9 3 7 0 5))
4 (setq M '(2 6 5 4 0 1 3))
6 (define (mem E L) ;la function mem a 2 arguments
8 (if (= (first L) E) true
12 (define (boolmemrec E L)
15 ((= (first L) E) true)
17 (println (boolmemrec 10 L))
19 (define (mem E L) ;la function mem a 2 arguments
31 (println (member 9 L))
33 (println (member 8 L))
35 (define (concatene L1 L2)
37 (cons (first L1) (concatene (rest L1) L2))))
38 (println (concatene L M))
39 (println (append L M))
47 ((+ 1 (rang x (rest L)))))
60 ((cons (first L) (tete (- n 1) (rest L))))))
61 ;FIXME: return nil after the first n elements in the list
63 (println (slice L 0 3))
69 ((member (first L1) L2) (cons (first L1) (inter (rest L1) L2)))
70 ((inter (rest L1) L2))))
71 ;FIXME: return nil after ...
73 (println (intersect L M))
80 ((= (first L1) (first L2)) (inclu (rest L1) (rest L2)))
81 ((inclu L1 (rest L2)))))
84 ;did not found a newlisp builtin equivalent function