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.

MORE]nconc[x;y]: machine languageThe function nconc concatenates its arguments withoutcopying the first one, The operation is identical to that ofattrib except that the value is the entire result, (i.e. themodified first argument, x),.The- program for nconc[x;y] has the program variable m andis as follows:nc~nc[x;~]-= prog[[ml;go[null[x] RETU;Tw CONT]C ONT m=xA1 go[null[cdr[x] ] * A2;T @MORE m = cdr[m]go[~llA2 cdr[m] = yRETN return[x]RETU re turn[y 1O~erations on Lists:list[xl;x2; ...; x n 1: machine language; special formThe function list of any number of arguments has as valuethe list of its arguments,For the APPLY operator, if p is the associated p-list,and x represents the string of xits above,append[x;y] : machine languageThe function append combines its two arguments into onenew list. The value of append is the resultant list. Forexample,

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

Saved successfully!

Ooh no, something went wrong!