Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
2Activity

Table Of Contents

Basic Data Types
Some Primitive Functions
Changing Variable Values
More Functions and Predicates
Setf
Exercises
Defining Lisp functions
Defining Functions: Defun
Local and Global Variables
Using an Editor
Using Your Own Definitions in New Functions
Functions with Extended Bodies
Conditional Control
More Predicates and Functions
Recursion and Iteration
Recursive Definitions
Iteration Using Dotimes
When To Use Recursion/When To Use Iteration
Tail Recursion
Timing Function Calls
Programming Techniques
A Word about Lisp
Recursion on Simple Lists
Recursion on Nested Lists and Expressions
Recursion on Numbers
Ensuring Proper Termination
Abstraction
Summary of Rules
Simple Data Structures in Lisp
Association Lists
Property Lists
Arrays, Vectors, and Strings
Defstruct
Exercises
Input and Output
Basic Printing
Nicer Output Using Format
Reading
Input and Output to Files
Converting Strings to Lists
Functions, Lambda Expressions, and Macros
Eval
Lambda Expressions
Funcall
Apply
Mapcar
Backquote and Commas
Defmacro
Appendix: Selected Lisp primitives
* (FUNCTION)
+ (FUNCTION)
- (FUNCTION)
1+, 1- (FUNCTIONS)
= (PREDICATE)
<, > , <=, >= (PREDICATES)
and (MACRO)
append (FUNCTION)
apply (FUNCTION)
atom (PREDICATE)
butlast (FUNCTION)
car (FUNCTION)
cdr (Function)
cond (MACRO)
cons (FUNCTION)
defun (MACRO)
do (SPECIAL FORM)
documentation (FUNCTION)
eql, equal (PREDICATES)
eval (FUNCTION)
evenp, oddp (PREDICATES)
first (FUNCTION)
if (SPECIAL FORM)
length (FUNCTION)
let (SPECIAL FORM)
list (FUNCTION)
listp (PREDICATE)
mapcar (FUNCTION)
max, min (FUNCTIONS)
member (FUNCTION)
not (PREDICATE)
nth (FUNCTION)
nthcdr (FUNCTION)
null (PREDICATE)
numberp (PREDICATE)
or (MACRO)
read (FUNCTION)
rest (FUNCTION)
reverse (FUNCTION)
second, third, etc. (FUNCTIONS)
setf (MACRO)
symbolp (PREDICATE)
y-or-n-p, yes-or-no-p (PREDICATES)
About this document
0 of .
Results for:
No results containing your search query
P. 1
Lisp Primer

Lisp Primer

Ratings: (0)|Views: 126 |Likes:
Published by g_teodorescu

More info:

Published by: g_teodorescu on Nov 05, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

09/26/2012

pdf

text

original

You're Reading a Free Preview
Pages 4 to 25 are not shown in this preview.
You're Reading a Free Preview
Pages 29 to 44 are not shown in this preview.
You're Reading a Free Preview
Pages 48 to 95 are not shown in this preview.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->