25.11.2014 Views

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.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introducción a <strong>Lisp</strong><br />

1<br />

Variables locales y globales<br />

> (let ((x 1) (y 2))<br />

(+ x y))<br />

3<br />

> x<br />

*** - EVAL: variable X has no value<br />

> (<strong>de</strong>fparameter *glob* 3)<br />

*GLOB*<br />

> *glob*<br />

3<br />

IA-I 2003–2004 CcIa Introducción a <strong>Lisp</strong> <strong>Lisp</strong>.11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!