50 likes | 167 Views
LISP. (append '(a b c) '(c d e)) (A B C C D E ) LISP defines a function (member E L ) that returns non-NIL if E is a member of L . (nth N L ) that returns the N 'th member of list L (assuming that the elements are numbered from zero onwards): ( nth 0 '(a b c d ))
E N D
(append '(a b c) '(c d e)) (A B C C D E) • LISP defines a function (member EL) that returns non-NIL if E is a member of L. • (nth NL) that returns the N'th member of list L (assuming that the elements are numbered from zero onwards): (nth 0 '(a b c d)) • To better understand the last point, we can make use of the debugging facility trace (do not compile your code if you want to use trace): (trace function)
Making and loading LISP File • (load “mywork.lisp”) • Will load whatever functions are on the file