Tema Lisp - Dpto. Ciencias de la Computación e Inteligencia Artificial.
Tema Lisp - Dpto. Ciencias de la Computación e Inteligencia Artificial.
Tema Lisp - Dpto. Ciencias de la Computación e Inteligencia Artificial.
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Operadores lógicos<br />
* (NOT X)<br />
(not (= (+ 1 1) 2)) => NIL<br />
(not (= (+ 1 1) 3)) => T<br />
* (OR E-1 ... E-N)<br />
(or nil 2 3) => 2<br />
(or (eq ’a ’b) (eq ’a ’c)) => NIL<br />
* (AND E-1 ... E-N)<br />
(and 1 nil 3) => NIL<br />
(and 1 2 3) => 3<br />
IA-I 2003–2004 CcIa Introducción a <strong>Lisp</strong> <strong>Lisp</strong>.21