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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

evaluated functions. - map is used only when the action ofdoing f(x) is important,The program for - map[x;f] has the program variable m andis the following:map[x;fl E prog[[mljm=xLOOP ~o[~u~I.[~]~END;T-*coNT]CONT f[mlm = cdr[m]go [LOOPEND1re t UP~[NIL']conc[x;y] : special formThe function conc evaluates the items on the list x, and. .concatenates the values, The value of cone is the final con-catenated list, The items on the list x must either be boundon the list of pairs, y, or have APVAL or APVALI on their associationlists,let x = (x,Y,z)-and let Y have APVAL on its list pointing tothe value Y, thenwconc[x;yl = (w,Y,R)pair[x;y] - : machine languageThe function pair has as value the list of pairs of correspondingelements of the lists x and y. The arguments x andy must be lists ~f the same number of elements. They should - not

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

Saved successfully!

Ooh no, something went wrong!