Get Common Lisp: An Interactive Approach (Principles of Computer PDF

By Stuart C. Shapiro

ISBN-10: 0716782189

ISBN-13: 9780716782186

This can be a first-class LISP booklet; might be the simplest. The e-book is brief (~240 pages), relaxing to learn and includes an intensive reference of the language behind the ebook. i'd certainly suggest interpreting this ebook ahead of advancing onto Paul Graham's "On Lisp".

Show description

Read or Download Common Lisp: An Interactive Approach (Principles of Computer Science Series) PDF

Similar software books

Innovative Lernsysteme: Kompetenzentwicklung mit Blended by Annette Kuhlmann, Werner Sauter (auth.) PDF

Die aktuellen Entwicklungen in Wirtschaft und Gesellschaft (Globalisierung, E-Business, internet 2. zero) haben zwingend auch den Bedarf nach innovativen Lernkonzepten zur Folge. Dabei wird Wissensvermittlung und Qualifikation mit E-Learning zunehmend in die Eigenverantwortung der Lernenden verlagert. Der Bedarf nach Kompetenzentwicklung im Netz wächst.

Formal Methods and Software Engineering: 16th International - download pdf or read online

This ebook constitutes the refereed lawsuits of the sixteenth overseas convention on Formal Engineering tools, ICFEM 2014, held in Luxembourg, Luxembourg, in November 2014. The 28 revised complete papers awarded have been rigorously reviewed and chosen from seventy three submissions. The papers disguise a variety of subject matters within the zone of formal equipment and software program engineering and are dedicated to advancing the cutting-edge of employing formal tools in perform.

Additional info for Common Lisp: An Interactive Approach (Principles of Computer Science Series)

Sample text

The quote mark is the single quote mark on your keyboard that you might use for an apostrophe. In this text, it will look like this: ’. Notice that there is another single quote mark on your keyboard that points in the other direction. It is called a backquote and will look in this text like this: ‘. 3 4)) Actually, the Lisp listener is still going through its normal read-eval-print cycle, but when it reads a quoted S-expression, it constructs a quoted object, and the value of a quoted object is the object itself, so then it prints the list you typed in, using a printed representation it chooses.

We can see this by using eql: > (eql ’f\rank ’f|rank|) NIL > (eql ’f|rank| ’|frank|) NIL > (eql ’f\rank ’|frank|) NIL In general, Lisp’s printed representation of an object is a character sequence that you could use to type the object to Lisp. That way it is easier to have Lisp read a file that it has written. That is why, in all three examples above, Lisp used the escape brackets. To convince yourself that the escape brackets are not part of the name itself, you could do > (symbol-name ’|frank|) "frank" > (string= (symbol-name ’f|rank|) "Frank") T > (eql ’f\rank ’|FrANK|) T 6: Symbols 31 We have now seen Common Lisp objects that are integers, floating-point numbers, ratios, strings, characters, lists, and symbols.

There must be no space within the ratio. Common Lisp always prints a ratio in simplest terms, but you needn’t. 5 > (/ 12 8) 3/2 > 12/8 3/2 Expressions may be nested within expressions in the usual way. In mathematical notation, we might write f (x, g(y)); whereas in Cambridge Prefix notation, we’d write (f x (g y)). So the Lisp version of 5 × (3 + 4) is (* 5 (+ 3 4)), and the Lisp version of 5 × 3 + 4 is (+ (* 5 3) 4). 0 (sqrt (- (expt 7 2) (* 4 2 5)))) (* 2 2)) Notice that (sqrt number) returns the square root of the number and that (expt number1 number2 ) is number1 raised to the power of number2 .

Download PDF sample

Common Lisp: An Interactive Approach (Principles of Computer Science Series) by Stuart C. Shapiro

by James

Rated 4.34 of 5 – based on 44 votes

Related posts