10.07.2015 Views

LISP I Programmer's Manual - Software Preservation Group

LISP I Programmer's Manual - Software Preservation Group

LISP I Programmer's Manual - Software Preservation Group

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.

Consider ~~~~~~[SHAKESPEARE;(UNDER,GREENWOOD,TREE);(GREENWOOD, TREE) 1There are two variables involved, GREENWOOD and TREE.Then the execution of format generates three functions towhich we could give argumentsshake speare [ SPREADING; CHESTNUT 1greenwood [ (BENEATH, SPREADING, CHESTNUT) 1tree [ (BENEATH, SPREADING, CHESTNUT) ]Executing these functions in turn gives(UNDER,SPREADING,CHESTNUT)SPREADINGand CHESTNUT respectively.Thus shakespeare has as argument a list u which must containas many terms as v; and substitutes in f for one occurrenceof each variable in v the corresponding variable in u,greenwood and tree have as argument a list structure gand pick out the element in g which occupies a position correspondingto their's in f.

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

Saved successfully!

Ooh no, something went wrong!