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.
Funciones como argumentos <strong>de</strong> entrada (otras)<br />
* (POSITION-IF PREDICADO L), (POSITION-IF-NOT PREDICADO L)<br />
(position-if #’atom ’((x) b d (a) (c))) => 1<br />
(position-if-not #’atom ’(b d (a) (c))) => 2<br />
* (FIND-IF PREDICADO LISTA), (FIND-IF-NOT PREDICADO LISTA)<br />
(find-if #’atom ’((a) b (c) d e))<br />
(find-if-not #’atom ’((a) b (c) d e))<br />
=> B<br />
=> (A)<br />
IA-I 2003–2004 CcIa Introducción a <strong>Lisp</strong> <strong>Lisp</strong>.56